Merge pull request #4901 from KFilipek/zmalloc_typo_fix

HW_PHYSMEM typo in preprocessor condition
This commit is contained in:
Salvatore Sanfilippo 2018-06-11 16:32:40 +02:00 committed by GitHub
commit e2a9ea0405
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -419,7 +419,7 @@ size_t zmalloc_get_memory_size(void) {
mib[0] = CTL_HW;
#if defined(HW_REALMEM)
mib[1] = HW_REALMEM; /* FreeBSD. ----------------- */
#elif defined(HW_PYSMEM)
#elif defined(HW_PHYSMEM)
mib[1] = HW_PHYSMEM; /* Others. ------------------ */
#endif
unsigned int size = 0; /* 32-bit */