summaryrefslogtreecommitdiff
path: root/libc/stdlib/malloc/malloc.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc/stdlib/malloc/malloc.c')
-rw-r--r--libc/stdlib/malloc/malloc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libc/stdlib/malloc/malloc.c b/libc/stdlib/malloc/malloc.c
index 432f893e8..9a3bbb332 100644
--- a/libc/stdlib/malloc/malloc.c
+++ b/libc/stdlib/malloc/malloc.c
@@ -54,8 +54,9 @@
*/
#include <features.h>
-#define _POSIX_SOURCE
+#ifndef _XOPEN_SOURCE
#define _XOPEN_SOURCE
+#endif
#include <sys/types.h>
#include <unistd.h>
#include <limits.h>