From cdffdbee38759cbcf30f28100eb011343c7dd3fe Mon Sep 17 00:00:00 2001 From: Kevin Day Date: Sun, 11 Dec 2022 23:15:31 -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 048162c..6315197 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 87f8931..13c9875 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 0af6d8c..f5b3104 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 16c1407..c4745af 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 54b69a4..061dbc2 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 3c31f9c..a8acad4 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 25a6c4e..441b8e6 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