summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/findutils/findutils-4.2.31/gnulib-extension.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-extended/findutils/findutils-4.2.31/gnulib-extension.patch')
-rw-r--r--meta/recipes-extended/findutils/findutils-4.2.31/gnulib-extension.patch54
1 files changed, 54 insertions, 0 deletions
diff --git a/meta/recipes-extended/findutils/findutils-4.2.31/gnulib-extension.patch b/meta/recipes-extended/findutils/findutils-4.2.31/gnulib-extension.patch
new file mode 100644
index 0000000000..2bc54e9290
--- /dev/null
+++ b/meta/recipes-extended/findutils/findutils-4.2.31/gnulib-extension.patch
@@ -0,0 +1,54 @@
1the old AC_USE_SYSTEM_EXTENSIONS won't work with AC_GNU_SOURCE
2
3against 4.2.31
407/08/2010 - qhe
5
6diff --git a/gnulib/m4/extensions.m4 b/gnulib/m4/extensions.m4
7index 143a9e5..0f27ceb 100644
8--- a/gnulib/m4/extensions.m4
9+++ b/gnulib/m4/extensions.m4
10@@ -12,44 +12,6 @@
11 # enough in this area it's likely we'll need to redefine
12 # AC_USE_SYSTEM_EXTENSIONS for quite some time.
13
14-# AC_USE_SYSTEM_EXTENSIONS
15-# ------------------------
16-# Enable extensions on systems that normally disable them,
17-# typically due to standards-conformance issues.
18-AC_DEFUN([AC_USE_SYSTEM_EXTENSIONS],
19-[
20- AC_BEFORE([$0], [AC_COMPILE_IFELSE])
21- AC_BEFORE([$0], [AC_RUN_IFELSE])
22-
23- AC_REQUIRE([AC_GNU_SOURCE])
24- AC_REQUIRE([AC_AIX])
25- AC_REQUIRE([AC_MINIX])
26-
27- AH_VERBATIM([__EXTENSIONS__],
28-[/* Enable extensions on Solaris. */
29-#ifndef __EXTENSIONS__
30-# undef __EXTENSIONS__
31-#endif
32-#ifndef _POSIX_PTHREAD_SEMANTICS
33-# undef _POSIX_PTHREAD_SEMANTICS
34-#endif
35-#ifndef _TANDEM_SOURCE
36-# undef _TANDEM_SOURCE
37-#endif])
38- AC_CACHE_CHECK([whether it is safe to define __EXTENSIONS__],
39- [ac_cv_safe_to_define___extensions__],
40- [AC_COMPILE_IFELSE(
41- [AC_LANG_PROGRAM([
42-# define __EXTENSIONS__ 1
43- AC_INCLUDES_DEFAULT])],
44- [ac_cv_safe_to_define___extensions__=yes],
45- [ac_cv_safe_to_define___extensions__=no])])
46- test $ac_cv_safe_to_define___extensions__ = yes &&
47- AC_DEFINE([__EXTENSIONS__])
48- AC_DEFINE([_POSIX_PTHREAD_SEMANTICS])
49- AC_DEFINE([_TANDEM_SOURCE])
50-])
51-
52 # gl_USE_SYSTEM_EXTENSIONS
53 # ------------------------
54 # Enable extensions on systems that normally disable them,