File: buildsys-define-DEFAULT_SOURCE.patch

package info (click to toggle)
kannel 1.4.5-22
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 16,284 kB
  • sloc: ansic: 105,659; sh: 32,211; xml: 20,360; php: 1,103; perl: 711; makefile: 583; yacc: 548; awk: 133; python: 122; javascript: 27; pascal: 3
file content (51 lines) | stat: -rw-r--r-- 1,603 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
From: Jonas Smedegaard <dr@jones.dk>
Date: Fri, 27 Sep 2024 23:19:10 +0200
Subject: Define _DEFAULT_SOURCE (not _VSD_SOURCE or _SVID_SOURCE)

---
 addons/opensmppbox/configure.in | 2 +-
 addons/sqlbox/configure.in      | 2 +-
 gwlib/gw_uuid.c                 | 4 ++--
 3 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/addons/opensmppbox/configure.in b/addons/opensmppbox/configure.in
index f73b57e..08cd25f 100644
--- a/addons/opensmppbox/configure.in
+++ b/addons/opensmppbox/configure.in
@@ -138,7 +138,7 @@ case "$host" in
     LIBS="$LIBS -L/opt/local/lib" 
     ;;
   *-linux-*)
-    CFLAGS="$CFLAGS -D_XOPEN_SOURCE=600 -D_BSD_SOURCE"
+    CFLAGS="$CFLAGS -D_XOPEN_SOURCE=600 -D_DEFAULT_SOURCE"
     LDFLAGS="$LDFLAGS -rdynamic"
     ;;
   *-*-openbsd* | *-*-freebsd*)
diff --git a/addons/sqlbox/configure.in b/addons/sqlbox/configure.in
index 575db0d..f2e140e 100644
--- a/addons/sqlbox/configure.in
+++ b/addons/sqlbox/configure.in
@@ -162,7 +162,7 @@ case "$host" in
     LIBTOOL="libtool -static -o"
     ;;
   *-linux-*)
-    CFLAGS="$CFLAGS -D_XOPEN_SOURCE=600 -D_BSD_SOURCE"
+    CFLAGS="$CFLAGS -D_XOPEN_SOURCE=600 -D_DEFAULT_SOURCE"
     LDFLAGS="$LDFLAGS -rdynamic"
     ;;
   *-*-openbsd* | *-*-freebsd*)
diff --git a/gwlib/gw_uuid.c b/gwlib/gw_uuid.c
index 102cb50..b1b48b5 100644
--- a/gwlib/gw_uuid.c
+++ b/gwlib/gw_uuid.c
@@ -13,8 +13,8 @@
  * Force inclusion of SVID stuff since we need it if we're compiling in
  * gcc-wall wall mode
  */
-#ifndef _SVID_SOURCE
-#define _SVID_SOURCE
+#ifndef _DEFAULT_SOURCE
+#define _DEFAULT_SOURCE
 #endif
 
 #include "gw-config.h"