Andrew Geissler | 87f5cff | 2022-09-30 13:13:31 -0500 | [diff] [blame^] | 1 | From cda1734bed3b048c01452c798877d05b8c2f4c15 Mon Sep 17 00:00:00 2001 |
| 2 | From: Khem Raj <raj.khem@gmail.com> |
| 3 | Date: Tue, 6 Sep 2022 10:00:59 -0700 |
| 4 | Subject: [PATCH 2/2] builtin: Replace _BSD_SOURCE with _DEFAULT_SOURCE |
| 5 | |
| 6 | newer glibc has remove _BSD_SOURCE and wants it to be replaced with _DEFAULT_SOURCE |
| 7 | |
| 8 | Fixes |
| 9 | /usr/include/features.h:194:3: warning: "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-W#warnings] |
| 10 | warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" |
| 11 | |
| 12 | Uptream-Status: Submitted [https://github.com/stedolan/jq/pull/2480] |
| 13 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
| 14 | --- |
| 15 | src/builtin.c | 2 +- |
| 16 | 1 file changed, 1 insertion(+), 1 deletion(-) |
| 17 | |
| 18 | diff --git a/src/builtin.c b/src/builtin.c |
| 19 | index 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 | -- |
| 29 | 2.37.3 |
| 30 | |