summaryrefslogtreecommitdiff
path: root/libc/misc/getloadavg
diff options
context:
space:
mode:
Diffstat (limited to 'libc/misc/getloadavg')
-rw-r--r--libc/misc/getloadavg/getloadavg.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libc/misc/getloadavg/getloadavg.c b/libc/misc/getloadavg/getloadavg.c
index 2aee565c0..0d98119a9 100644
--- a/libc/misc/getloadavg/getloadavg.c
+++ b/libc/misc/getloadavg/getloadavg.c
@@ -23,7 +23,9 @@
* Imported from musl C library
*/
+#ifndef _GNU_SOURCE
#define _GNU_SOURCE
+#endif /* _GNU_SOURCE */
#include <stdlib.h>
#include <sys/sysinfo.h>