From c6c2f328e84391ad5b8d95a315ccdae9d63f47f4 Mon Sep 17 00:00:00 2001 From: midipix Date: Sat, 5 Oct 2019 14:34:12 +0000 Subject: profiles/osapi/modern.h: only #define _XOPEN_SOURCE as needed. --- profiles/osapi/modern.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'profiles') diff --git a/profiles/osapi/modern.h b/profiles/osapi/modern.h index 3ef51c8..3075dd6 100644 --- a/profiles/osapi/modern.h +++ b/profiles/osapi/modern.h @@ -276,6 +276,9 @@ #define __EXTENSIONS__ 1 #endif +#ifndef _XOPEN_SOURCE +#define _XOPEN_SOURCE 600 +#endif #define _BSD_TYPES 1 #define _DARWIN_C_SOURCE 1 @@ -285,7 +288,6 @@ #define _NETBSD_SOURCE 1 #define _POSIX_C_SOURCE 200112L #define _REENTRANT 1 -#define _XOPEN_SOURCE 600 #define _XOPEN_SOURCE_EXTENDED 1 #define __BSD_VISIBLE 1 #define __EXTENSIONS__ 1 -- cgit v1.2.3