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

This commit is contained in:
antirez 2017-04-11 16:54:27 +02:00
parent dd80fedf6f
commit f59b4b93d9

View File

@ -413,6 +413,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