blob: d2f999a7280abf6238d1a293e56c5769551b5e39 [file] [log] [blame]
Andrew Geissler87f5cff2022-09-30 13:13:31 -05001From cda1734bed3b048c01452c798877d05b8c2f4c15 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Tue, 6 Sep 2022 10:00:59 -0700
4Subject: [PATCH 2/2] builtin: Replace _BSD_SOURCE with _DEFAULT_SOURCE
5
6newer glibc has remove _BSD_SOURCE and wants it to be replaced with _DEFAULT_SOURCE
7
8Fixes
9/usr/include/features.h:194:3: warning: "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-W#warnings]
10warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
11
12Uptream-Status: Submitted [https://github.com/stedolan/jq/pull/2480]
13Signed-off-by: Khem Raj <raj.khem@gmail.com>
14---
15 src/builtin.c | 2 +-
16 1 file changed, 1 insertion(+), 1 deletion(-)
17
18diff --git a/src/builtin.c b/src/builtin.c
19index 1c6b08c..2a31496 100644
20--- a/src/builtin.c
21+++ b/src/builtin.c
22@@ -1,4 +1,4 @@
23-#define _BSD_SOURCE
24+#define _DEFAULT_SOURCE
25 #define _GNU_SOURCE
26 #ifndef __sun__
27 # define _XOPEN_SOURCE
28--
292.37.3
30