Make sure standard library is imported when using abort (#395)
I found a few cases where serverAssert() resulted in abort being added, but abort requires stdlib. So, when serverAssert() uses abort, also automatically include stdlib. Signed-off-by: Madelyn Olson <madelyneolson@gmail.com>
This commit is contained in:
parent
a5a1377dfc
commit
b0d5a0f58d
@ -144,6 +144,7 @@
|
||||
#if __GNUC__ >= 5 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 5)
|
||||
#define valkey_unreachable __builtin_unreachable
|
||||
#else
|
||||
#include <stdlib.h>
|
||||
#define valkey_unreachable abort
|
||||
#endif
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user