From f47607af0242c31a113e6ff9c0a884acec036757 Mon Sep 17 00:00:00 2001 From: antirez Date: Tue, 11 Apr 2017 16:54:27 +0200 Subject: [PATCH] Fix preprocessor if/else chain broken in order to fix #3927. --- src/zmalloc.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/zmalloc.c b/src/zmalloc.c index 0d360779..f653760a 100644 --- a/src/zmalloc.c +++ b/src/zmalloc.c @@ -418,6 +418,9 @@ size_t zmalloc_get_memory_size(void) { if (sysctl(mib, 2, &size, &len, NULL, 0) == 0) return (size_t)size; return 0L; /* Failed? */ +#else + return 0L; /* Unknown method to get the data. */ +#endif #else return 0L; /* Unknown OS. */ #endif