blob: d4383cbb6267632757e3cff31330d28b056af650 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
$NetBSD: patch-compile.c,v 1.2 2018/11/03 12:47:16 leot Exp $
Defining _GNU_SOURCE, _BSD_SOURCE etc. in C sources is problematic,
because the result of the configure command may be inconsistent with it.
to be consistent, such macros have to be defined in the early stage of
the configure command, and the AC_USE_SYSTEM_EXTENSIONS macro does the job.
Part of pull request 1458, commit id `df9a0963f8fa6fca773b059dce22c598152f3edb':
<https://github.com/stedolan/jq/pull/1458>
Also shared via PR pkg/52460.
--- src/compile.c.orig 2015-08-18 04:25:04.000000000 +0000
+++ src/compile.c
@@ -1,6 +1,3 @@
-#ifndef _GNU_SOURCE
-#define _GNU_SOURCE // for strdup
-#endif
#include <assert.h>
#include <math.h>
#include <string.h>
|