blob: 81e5740c8215e2f32a9c56678c7ed15912fcb594 (
plain)
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
https://bugs.gentoo.org/910693
Fix implicit declarations by regenerating configure,
Fix config header templates, manually define _GNU_SOURCE when
correct header was not cooperating
--- a/configure.ac
+++ b/configure.ac
@@ -29,6 +29,7 @@
AC_CONFIG_AUX_DIR(config)
AC_CONFIG_MACRO_DIR(m4)
AC_LANG(C)
+AC_USE_SYSTEM_EXTENSIONS
dnl Compute the canonical host (run-time) system type variable
AC_CANONICAL_HOST
--- a/libtiff/tif_config.h.in
+++ b/libtiff/tif_config.h.in
@@ -139,6 +139,11 @@
/* Support zstd compression */
#undef ZSTD_SUPPORT
+/* Enable GNU extensions on systems that have them. */
+#ifndef _GNU_SOURCE
+# undef _GNU_SOURCE
+#endif
+
/* Enable large inode numbers on Mac OS X 10.5. */
#ifndef _DARWIN_USE_64_BIT_INODE
# define _DARWIN_USE_64_BIT_INODE 1
--- a/libtiff/tiffconf.h.in
+++ b/libtiff/tiffconf.h.in
@@ -90,6 +90,11 @@
/* Support Deflate compression */
#undef ZIP_SUPPORT
+/* Enable GNU extensions on systems that have them. */
+#ifndef _GNU_SOURCE
+# undef _GNU_SOURCE
+#endif
+
/* Support libdeflate enhanced compression */
#undef LIBDEFLATE_SUPPORT
--- a/libtiff/mkg3states.c
+++ b/libtiff/mkg3states.c
@@ -27,6 +27,7 @@
* in Frank Cringle's viewfax program;
* Copyright (C) 1990, 1995 Frank D. Cringle.
*/
+#define _GNU_SOURCE 1
#include "tif_config.h"
#include "libport.h"
|