From 7c59c2dd782d00b9d3f68da2513c15469ad0eb08 Mon Sep 17 00:00:00 2001 From: Kevin Day Date: Sun, 11 Dec 2022 23:16:24 -0600 Subject: [PATCH] Bugfix: _GNU_SOURCE should be wrapped in an ifndef. --- level_0/f_execute/c/execute.h | 4 +++- level_0/f_limit/c/limit.h | 4 +++- level_0/f_thread/c/thread.h | 4 +++- level_1/fl_control_group/c/control_group.h | 4 +++- level_1/fl_execute/c/execute.h | 4 +++- level_2/fll_execute/c/execute.h | 4 +++- level_3/controller/c/controller.h | 4 +++- 7 files changed, 21 insertions(+), 7 deletions(-) diff --git a/level_0/f_execute/c/execute.h b/level_0/f_execute/c/execute.h index a845324..72c0fb9 100644 --- a/level_0/f_execute/c/execute.h +++ b/level_0/f_execute/c/execute.h @@ -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 diff --git a/level_0/f_limit/c/limit.h b/level_0/f_limit/c/limit.h index dc02b69..22f14f9 100644 --- a/level_0/f_limit/c/limit.h +++ b/level_0/f_limit/c/limit.h @@ -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 diff --git a/level_0/f_thread/c/thread.h b/level_0/f_thread/c/thread.h index f39bd3a..01f9303 100644 --- a/level_0/f_thread/c/thread.h +++ b/level_0/f_thread/c/thread.h @@ -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 diff --git a/level_1/fl_control_group/c/control_group.h b/level_1/fl_control_group/c/control_group.h index 8569ed2..2b343b2 100644 --- a/level_1/fl_control_group/c/control_group.h +++ b/level_1/fl_control_group/c/control_group.h @@ -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 diff --git a/level_1/fl_execute/c/execute.h b/level_1/fl_execute/c/execute.h index 4446404..097f307 100644 --- a/level_1/fl_execute/c/execute.h +++ b/level_1/fl_execute/c/execute.h @@ -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 diff --git a/level_2/fll_execute/c/execute.h b/level_2/fll_execute/c/execute.h index 0fb052f..261bf29 100644 --- a/level_2/fll_execute/c/execute.h +++ b/level_2/fll_execute/c/execute.h @@ -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 diff --git a/level_3/controller/c/controller.h b/level_3/controller/c/controller.h index d4bc62a..e30842a 100644 --- a/level_3/controller/c/controller.h +++ b/level_3/controller/c/controller.h @@ -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 -- 1.8.3.1