File: fix_define_DEFAULT_SOURCE.patch

package info (click to toggle)
libast 0.7-12
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,984 kB
  • sloc: ansic: 13,137; sh: 10,332; makefile: 73
file content (35 lines) | stat: -rw-r--r-- 895 bytes parent folder | download
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
Author: Tj <debian@iam.tj>
Last-Update: 2025-09-27
Forwarded: not-needed
Description: update deprecated define _BSD_SOURCE

diff --git a/include/libast/sysdefs.h.in b/include/libast/sysdefs.h.in
index c558182..bdf9025 100644
--- a/include/libast/sysdefs.h.in
+++ b/include/libast/sysdefs.h.in
@@ -44,8 +44,8 @@
 # ifndef _GNU_SOURCE
 #  define _GNU_SOURCE
 # endif
-# ifndef _BSD_SOURCE
-#  define _BSD_SOURCE
+# ifndef _DEFAULT_SOURCE
+#  define _DEFAULT_SOURCE
 # endif
 # ifndef _XOPEN_SOURCE
 /* FIXME -- Do some systems still need this? */
diff --git a/include/libast_internal.h b/include/libast_internal.h
index 9a68854..9216f37 100644
--- a/include/libast_internal.h
+++ b/include/libast_internal.h
@@ -44,8 +44,8 @@
 # ifndef _GNU_SOURCE
 #  define _GNU_SOURCE
 # endif
-# ifndef _BSD_SOURCE
-#  define _BSD_SOURCE
+# ifndef _DEFAULT_SOURCE
+#  define _DEFAULT_SOURCE
 # endif
 #endif