]> git.pld-linux.org Git - packages/dante.git/blob - dante-cpp.patch
Release 6 (by relup.sh)
[packages/dante.git] / dante-cpp.patch
1 --- dante-1.4.2/acinclude.m4.orig       2017-01-23 20:28:08.000000000 +0100
2 +++ dante-1.4.2/acinclude.m4    2017-04-16 11:08:02.385924479 +0200
3 @@ -1106,6 +1106,8 @@
4  dnl test function that tries to determine if a specified errno error exists
5  m4_define([checkerrno],
6   [AC_MSG_CHECKING(for errno symbol $3)
7 +  CPPFLAGS_save="$CPPFLAGS"
8 +  CPPFLAGS="$CPPFLAGS -P"
9    AC_PREPROC_IFELSE(
10         [AC_LANG_PROGRAM([[#include <errno.h>]],
11                          [[
12 @@ -1117,7 +1119,9 @@
13         [AC_MSG_RESULT([OK])
14          $1="$$1 $3"
15          cat conftest.i | grep errnoval: >>$2],
16 -       [AC_MSG_RESULT([no])])])
17 +       [AC_MSG_RESULT([no])])
18 +  CPPFLAGS="$CPPFLAGS_save"
19 +])
20  AC_DEFUN([L_CHECKERRNO],
21   [checkerrno($@)])
22  
23 @@ -1127,8 +1131,11 @@
24  dnl test function that tries to determine if a specified errno error exists
25  m4_define([checkgaierror],
26   [AC_MSG_CHECKING(for getaddrinfo() error $3)
27 +  CPPFLAGS_save="$CPPFLAGS"
28 +  CPPFLAGS="$CPPFLAGS -P"
29    AC_PREPROC_IFELSE(
30         [AC_LANG_PROGRAM([[
31 +//#define _GNU_SOURCE 1
32  #include <sys/types.h>
33  #include <sys/socket.h>
34  #include <netdb.h>]],
35 @@ -1142,7 +1149,9 @@
36          $1="$$1 $3"
37          AC_DEFINE(HAVE_ERR_$3, 1, [$3 gai error found])
38          cat conftest.i | grep gaierrval: >>$2],
39 -       [AC_MSG_RESULT([no])])])
40 +       [AC_MSG_RESULT([no])])
41 +  CPPFLAGS="$CPPFLAGS_save"
42 +])
43  AC_DEFUN([L_CHECKGAIERROR],
44   [checkgaierror($@)])
45  
This page took 0.090226 seconds and 3 git commands to generate.