From da4410cce0db611abac8bc24db5672ea88f089a6 Mon Sep 17 00:00:00 2001
From: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
Date: Thu, 23 Jun 2016 20:52:27 +0200
Subject: build flags: Use -D_DEFAULT_SOURCE instead of deprecated
 -D_BSD_SOURCE and -D_SVID_SOURCE.

 Note: This breaks building on ancient Linux distro versions, e.g. Ubuntu
 10.04 LTS.

 For details see:
 http://man7.org/tlpi/code/faq.html#use_default_source
---
 nx-X11/config/cf/cross.def | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'nx-X11/config/cf/cross.def')

diff --git a/nx-X11/config/cf/cross.def b/nx-X11/config/cf/cross.def
index 9f71091f5..74ca2de96 100644
--- a/nx-X11/config/cf/cross.def
+++ b/nx-X11/config/cf/cross.def
@@ -14,7 +14,7 @@
 #define ServerCDebugFlags	-O2
 #undef StandardDefines
 #define StandardDefines 	-Dlinux -D__arm__ -D_POSIX_SOURCE \
-				-D_BSD_SOURCE -D_GNU_SOURCE -DX_LOCALE
+				-D_DEFAULT_SOURCE -D_GNU_SOURCE -DX_LOCALE
 #undef CcCmd
 #define StdIncDir /opt/Embedix/tools/arm-linux/include
 #define PreIncDir 
-- 
cgit v1.2.3

