blob: e849436578bddd063cbb161b882e245b293cb30a [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---
Patrick Williams520786c2023-06-25 16:20:36 -050015Upstream-Status: Pending
16
Andrew Geissler87f5cff2022-09-30 13:13:31 -050017 src/builtin.c | 2 +-
18 1 file changed, 1 insertion(+), 1 deletion(-)
19
20diff --git a/src/builtin.c b/src/builtin.c
21index 1c6b08c..2a31496 100644
22--- a/src/builtin.c
23+++ b/src/builtin.c
24@@ -1,4 +1,4 @@
25-#define _BSD_SOURCE
26+#define _DEFAULT_SOURCE
27 #define _GNU_SOURCE
28 #ifndef __sun__
29 # define _XOPEN_SOURCE
30--
312.37.3
32