summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/dpkg/dpkg/check_snprintf.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/dpkg/dpkg/check_snprintf.patch')
-rw-r--r--meta/recipes-devtools/dpkg/dpkg/check_snprintf.patch32
1 files changed, 32 insertions, 0 deletions
diff --git a/meta/recipes-devtools/dpkg/dpkg/check_snprintf.patch b/meta/recipes-devtools/dpkg/dpkg/check_snprintf.patch
new file mode 100644
index 0000000000..7673cf1bd7
--- /dev/null
+++ b/meta/recipes-devtools/dpkg/dpkg/check_snprintf.patch
@@ -0,0 +1,32 @@
1diff -ruN dpkg-1.15.8.5-orig/m4/dpkg-funcs.m4 dpkg-1.15.8.5/m4/dpkg-funcs.m4
2--- dpkg-1.15.8.5-orig/m4/dpkg-funcs.m4 2010-10-08 12:27:15.082131611 +0800
3+++ dpkg-1.15.8.5/m4/dpkg-funcs.m4 2010-10-08 13:56:50.074284346 +0800
4@@ -27,7 +27,7 @@
5 # -----------------------
6 # Define HAVE_C99_SNPRINTF if we have C99 snprintf family semantics
7 AC_DEFUN([DPKG_FUNC_C99_SNPRINTF],
8-[AC_CACHE_CHECK([for C99 snprintf functions], [dpkg_cv_c99_snprintf],
9+[AC_CACHE_CHECK([for C99 snprintf functions], [ac_cv_func_snprintf_c99],
10 [AC_RUN_IFELSE([AC_LANG_SOURCE([[
11 #include <stdarg.h>
12 #include <stdio.h>
13@@ -58,14 +58,14 @@
14 return 0;
15 }
16 ]])],
17- [dpkg_cv_c99_snprintf=yes],
18- [dpkg_cv_c99_snprintf=no],
19- [dpkg_cv_c99_snprintf=no])])
20-AS_IF([test "x$dpkg_cv_c99_snprintf" = "xyes"],
21+ [ac_cv_func_snprintf_c99=yes],
22+ [ac_cv_func_snprintf_c99=no],
23+ [ac_cv_func_snprintf_c99=no])])
24+AS_IF([test "x$ac_cv_func_snprintf_c99" = "xyes"],
25 [AC_DEFINE([HAVE_C99_SNPRINTF], 1,
26 [Define to 1 if the 'snprintf' family is C99 conformant])],
27 )
28-AM_CONDITIONAL(HAVE_C99_SNPRINTF, [test "x$dpkg_cv_c99_snprintf" = "xyes"])
29+AM_CONDITIONAL(HAVE_C99_SNPRINTF, [test "x$ac_cv_func_snprintf_c99" = "xyes"])
30 ])# DPKG_FUNC_C99_SNPRINTF
31
32 # DPKG_MMAP