From b309aea5174d6d3af569c2c54632a35825734579 Mon Sep 17 00:00:00 2001 From: Daiki Ueno Date: Fri, 9 Jun 2017 14:44:04 +0200 Subject: build: Allow use of _GNU_SOURCE This reverts commit 6b457ffc, which forbids the use of GNU extension for the incompatibility of strerror_r. However, now that strerror_l is used instead on glibc systems, it has no point to do that. --- common/compat.h | 4 ---- common/unix-peer.c | 5 ----- 2 files changed, 9 deletions(-) (limited to 'common') diff --git a/common/compat.h b/common/compat.h index acbccf9..15b3106 100644 --- a/common/compat.h +++ b/common/compat.h @@ -40,10 +40,6 @@ #include #include -#ifdef _GNU_SOURCE -#error Make the crap stop. _GNU_SOURCE is completely unportable and breaks all sorts of behavior -#endif - #if !defined(__cplusplus) && (__GNUC__ > 2) #define GNUC_PRINTF(x, y) __attribute__((__format__(__printf__, x, y))) #else diff --git a/common/unix-peer.c b/common/unix-peer.c index ce0de3b..f8f20e6 100644 --- a/common/unix-peer.c +++ b/common/unix-peer.c @@ -34,11 +34,6 @@ #include "config.h" -/* needed for struct ucred */ -#if defined(__linux__) && !defined(_GNU_SOURCE) -#define _GNU_SOURCE -#endif - #include "unix-peer.h" #include -- cgit v1.1