]> Kevux Git Server - fll/commitdiff
Bugfix: _GNU_SOURCE should be wrapped in an ifndef.
authorKevin Day <thekevinday@gmail.com>
Mon, 12 Dec 2022 05:15:31 +0000 (23:15 -0600)
committerKevin Day <thekevinday@gmail.com>
Mon, 12 Dec 2022 05:15:31 +0000 (23:15 -0600)
level_0/f_execute/c/execute.h
level_0/f_limit/c/limit.h
level_0/f_thread/c/thread.h
level_1/fl_control_group/c/control_group.h
level_1/fl_execute/c/execute.h
level_2/fll_execute/c/execute.h
level_3/controller/c/controller.h

index 048162cc9fb73c5357a4e5940986244b0976f71d..63151973906668c52a08e8563e388718e9b73b72 100644 (file)
@@ -11,7 +11,9 @@
 #define _F_execute_h
 
 // Include pre-requirements.
-#define _GNU_SOURCE
+#ifndef _GNU_SOURCE
+  #define _GNU_SOURCE
+#endif // _GNU_SOURCE
 
 // Libc includes.
 #include <sched.h>
index 87f8931b8700321e6714f77125dd547f8dbe3eba..13c98759690424bb22d25b7302749120a1994efd 100644 (file)
@@ -11,7 +11,9 @@
 #define _F_limit_h
 
 // Include pre-requirements.
-#define _GNU_SOURCE
+#ifndef _GNU_SOURCE
+  #define _GNU_SOURCE
+#endif // _GNU_SOURCE
 
 // Libc includes.
 #include <sys/time.h>
index 0af6d8ce956e58446541281eee3a6200083698e1..f5b3104ea2cd8768ceeac77e5790d8f749287d5c 100644 (file)
@@ -11,7 +11,9 @@
 #define _F_thread_h
 
 // Include pre-requirements.
-#define _GNU_SOURCE
+#ifndef _GNU_SOURCE
+  #define _GNU_SOURCE
+#endif // _GNU_SOURCE
 
 // Libc includes.
 #include <fcntl.h>
index 16c140724661368c0cccd044ec63b8ecdeb6c2e3..c4745af2949fb1b208de13388280d24280e78917 100644 (file)
@@ -17,7 +17,9 @@
 #define _FL_control_group_h
 
 // Include pre-requirements.
-#define _GNU_SOURCE
+#ifndef _GNU_SOURCE
+  #define _GNU_SOURCE
+#endif // _GNU_SOURCE
 
 // Libc includes.
 #include <sched.h>
index 54b69a4592989afed351db17c6bac2e129c8189a..061dbc234f464d5cf20ef5013af7893095c4158a 100644 (file)
@@ -15,7 +15,9 @@
 #define _FL_execute_h
 
 // Include pre-requirements.
-#define _GNU_SOURCE
+#ifndef _GNU_SOURCE
+  #define _GNU_SOURCE
+#endif // _GNU_SOURCE
 
 // Libc includes.
 #include <grp.h>
index 3c31f9c7a4c99ae07198f2e8e8ca8bbfe24f2992..a8acad40a91ad18d324551970b4a31c20698413b 100644 (file)
@@ -14,7 +14,9 @@
 #define _FLL_execute_h
 
 // Include pre-requirements.
-#define _GNU_SOURCE
+#ifndef _GNU_SOURCE
+  #define _GNU_SOURCE
+#endif // _GNU_SOURCE
 
 // Libc includes.
 #include <memory.h>
index 25a6c4e24df75ce5fd6520446e2523ab5d427b47..441b8e6f9e286d62e8dbbccf7995833a976487cf 100644 (file)
@@ -16,7 +16,9 @@
 #define _controller_h
 
 // Include pre-requirements.
-#define _GNU_SOURCE
+#ifndef _GNU_SOURCE
+  #define _GNU_SOURCE
+#endif // _GNU_SOURCE
 
 // Libc includes.
 #include <sched.h>