From c9c4f5dd3732606809f818a76e52814d327486fb Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Fri, 25 Nov 2016 09:54:05 +0000 Subject: [PATCH] gcc complains about BSD_SOURCE now --- src/platform.h | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/platform.h b/src/platform.h index 77a767875..d813fab9d 100644 --- a/src/platform.h +++ b/src/platform.h @@ -81,17 +81,12 @@ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. #endif /* _MSC_VER_ */ #if defined __GNUC__ -# undef _BSD_SOURCE -# define _BSD_SOURCE +# undef _DEFAULT_SOURCE +# define _DEFAULT_SOURCE # undef __USE_BSD # define __USE_BSD #endif -#ifdef _BSD_SOURCE -# undef __EXTENSIONS__ -# define __EXTENSIONS__ -#endif - #ifdef SOLARIS # define _SYS_PROCSET_H #undef _XOPEN_SOURCE