From 5bf579d5b262d44352408dc05e83629b35731fdd Mon Sep 17 00:00:00 2001 From: louib Date: Sat, 16 Nov 2019 18:25:34 -0500 Subject: [PATCH] Suppress warnings from glibc macros. --- src/logging.c | 7 ++++++- src/nwipe.c | 2 ++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/src/logging.c b/src/logging.c index 6a1dad1..7ebcf10 100644 --- a/src/logging.c +++ b/src/logging.c @@ -18,8 +18,13 @@ * */ -#define _POSIX_SOURCE +#ifndef _DEFAULT_SOURCE #define _DEFAULT_SOURCE +#endif + +#ifndef _POSIX_SOURCE +#define _POSIX_SOURCE +#endif #include "stdio.h" #include "stdlib.h" diff --git a/src/nwipe.c b/src/nwipe.c index 4a4d06d..c6fb503 100644 --- a/src/nwipe.c +++ b/src/nwipe.c @@ -20,7 +20,9 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. * */ +#ifndef _POSIX_SOURCE #define _POSIX_SOURCE +#endif #include #include