]> git.pld-linux.org Git - packages/sendmail.git/blob - sendmail-ipv6-glibc-2.2.patch
switch to new conditional builds macros (bcond_on_ -> _with_/bcond_off_ -> _without_...
[packages/sendmail.git] / sendmail-ipv6-glibc-2.2.patch
1 diff -Nur sendmail-8.11.2.orig/sendmail/conf.c sendmail-8.11.2/sendmail/conf.c
2 --- sendmail-8.11.2.orig/sendmail/conf.c        Thu Jan  4 21:46:38 2001
3 +++ sendmail-8.11.2/sendmail/conf.c     Thu Jan  4 21:45:27 2001
4 @@ -4329,7 +4329,7 @@
5  **     Support IPv6 as well as IPv4.
6  */
7  
8 -#if NETINET6 && NEEDSGETIPNODE && __RES < 19990909
9 +#if NETINET6 && NEEDSGETIPNODE && (__RES < 19990909 || (__GLIBC__ == 2 && __GLIBC_MINOR__ == 2))
10  
11  # ifndef AI_DEFAULT
12  #  define AI_DEFAULT   0       /* dummy */
13 diff -Nur sendmail-8.11.2.orig/sendmail/conf.h sendmail-8.11.2/sendmail/conf.h
14 --- sendmail-8.11.2.orig/sendmail/conf.h        Sat Dec 16 00:18:40 2000
15 +++ sendmail-8.11.2/sendmail/conf.h     Thu Jan  4 21:42:42 2001
16 @@ -1459,7 +1459,7 @@
17  #   else /* (GLIBC_VERSION >= 0x201) */
18  #    include <linux/in6.h>     /* IPv6 support */
19  #   endif /* (GLIBC_VERSION >= 0x201) */
20 -#   if (GLIBC_VERSION == 0x201 && !defined(NEEDSGETIPNODE))
21 +#   if ((GLIBC_VERSION == 0x201 || GLIBC_VERSION == 0x202) && !defined(NEEDSGETIPNODE))
22       /* Have APIs in <netdb.h>, but no support in glibc */
23  #    define NEEDSGETIPNODE     1
24  #   endif /* (GLIBC_VERSION == 0x201 && ! NEEDSGETIPNODE) */
This page took 0.066824 seconds and 3 git commands to generate.