Commit f47607af authored by antirez's avatar antirez
Browse files

Fix preprocessor if/else chain broken in order to fix #3927.

parent 74720ea9
...@@ -418,6 +418,9 @@ size_t zmalloc_get_memory_size(void) { ...@@ -418,6 +418,9 @@ size_t zmalloc_get_memory_size(void) {
if (sysctl(mib, 2, &size, &len, NULL, 0) == 0) if (sysctl(mib, 2, &size, &len, NULL, 0) == 0)
return (size_t)size; return (size_t)size;
return 0L; /* Failed? */ return 0L; /* Failed? */
#else
return 0L; /* Unknown method to get the data. */
#endif
#else #else
return 0L; /* Unknown OS. */ return 0L; /* Unknown OS. */
#endif #endif
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment