diff options
author | Dmitry Chestnykh <dm.chestnykh@gmail.com> | 2024-02-06 18:04:24 +0300 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2024-02-07 12:17:48 +0100 |
commit | 0fef8e7e0661daa17a9ca17b087f55dcb752b378 (patch) | |
tree | b8c19a83f54f66c983f37dd430676846bedd4763 | |
parent | 86c65e33a739556c274bf8d8f821f88ef04872de (diff) |
Fix redefinition of _GNU_SOURCE.
libc/misc/getloadavg/getloadavg.c:26: warning: "_GNU_SOURCE" redefined
26 | #define _GNU_SOURCE
|
In file included from <command-line>:
./include/libc-symbols.h:52: note: this is the location of the previous definition
52 | #define _GNU_SOURCE 1
Signed-off-by: Dmitry Chestnykh <dm.chestnykh@gmail.com>
-rw-r--r-- | libc/misc/getloadavg/getloadavg.c | 2 |
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> |