diff options
author | Jo-Philipp Wich <jo@mein.io> | 2018-08-23 09:36:06 +0200 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2018-08-23 09:36:06 +0200 |
commit | 77b774b30f9125e77137c57a2ff86de57361d947 (patch) | |
tree | b5db04be0f8e4f073667904f22ab29f840ab83a5 | |
parent | b741dec35698a80266fb8206970638e666774a33 (diff) |
build: avoid redefining _DEFAULT_SOURCE
Work around further glibc toolchain annoyances.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
-rw-r--r-- | file.c | 5 | ||||
-rw-r--r-- | main.c | 5 |
2 files changed, 8 insertions, 2 deletions
@@ -17,7 +17,10 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -#define _DEFAULT_SOURCE +#ifndef _DEFAULT_SOURCE +# define _DEFAULT_SOURCE +#define + #define _BSD_SOURCE #define _DARWIN_C_SOURCE #define _XOPEN_SOURCE 700 @@ -17,7 +17,10 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -#define _DEFAULT_SOURCE +#ifndef _DEFAULT_SOURCE +# define _DEFAULT_SOURCE +#endif + #define _BSD_SOURCE #define _GNU_SOURCE #define _XOPEN_SOURCE 700 |