xref: /OK3568_Linux_fs/buildroot/package/dt/0002-dt-default-source-define.patch (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1Patch taken from Fedora:
2http://pkgs.fedoraproject.org/cgit/rpms/dt.git/commit/dt-default-source-define.patch?id=a3107b34a3efc6af66a5f892514f233bb66eb6b5
3
4_BSD_SOURCE was deprecated, hence switch to use _DEFAULT_SOURCE as well
5to avoid the build from breaking on newer toolchains.
6
7Signed-off-by: Gustavo Zacarias <gustavo.zacarias@free-electrons.com>
8
9diff -rupN dt.v18.32.old/common.h dt.v18.32/common.h
10--- dt.v18.32.old/common.h	2013-03-01 23:52:30.000000000 +0100
11+++ dt.v18.32/common.h	2014-09-24 17:41:40.777604710 +0200
12@@ -127,7 +127,7 @@ typedef volatile slarge_t	v_slarge;
13
14 #endif /* defined(_WIN64) */
15
16-#elif defined(__GNUC__) && defined(_BSD_SOURCE) || defined(SCO) || defined(__QNXNTO__) || defined(SOLARIS) || defined(HP_UX) || defined(AIX) || defined(_NT_SOURCE)
17+#elif defined(__GNUC__) && defined(_BSD_SOURCE) || defined (_DEFAULT_SOURCE) ||  defined(SCO) || defined(__QNXNTO__) || defined(SOLARIS) || defined(HP_UX) || defined(AIX) || defined(_NT_SOURCE)
18
19 #define QuadIsLongLong
20 typedef unsigned long long int	large_t;
21