]> Kevux Git Server - fll/commitdiff
Bugfix: _GNU_SOURCE should be wrapped in an ifndef.
authorKevin Day <thekevinday@gmail.com>
Mon, 12 Dec 2022 05:16:24 +0000 (23:16 -0600)
committerKevin Day <thekevinday@gmail.com>
Mon, 12 Dec 2022 05:16:24 +0000 (23:16 -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 a8453243e69fa761f4c685991f51cf22a0fc8ec6..72c0fb93695a92f0541822e1f4de8f18975afbe3 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 dc02b69378d9f32086bf8a1e762fa0438fba6127..22f14f93bdb736e1fdfd90a8a785fe45b3689076 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 f39bd3a82329351a141a8dc78d240c0c13c44042..01f93039f07059e3bccb16871de8ed00616139e8 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 8569ed2143667aed676d01f979885b7206819c49..2b343b2871ef0ee89e29f71a3b1194b1a24fe1a4 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 44464047b3f938071220de8f579ad6da945b6e5e..097f307711eaf04eeca665cfbc2775cd29ddb8f7 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 0fb052f4c51aa2e2f89f7f6e668228c55d2f5002..261bf292ec491dbc4d8d03315cc57bda12454dfb 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 d4bc62a239b63c6f3e3f057704a2e2e252c493e3..e30842a65b21bbdc47c24b6c86d7b08c4c6b63ae 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>