From 7f8d4be5eddd0fb6b25a8a502b77103438a7b427 Mon Sep 17 00:00:00 2001 From: Jakub Bogusz Date: Thu, 4 Jan 2001 23:14:51 +0000 Subject: [PATCH] - sendmail IPv6 vs. glibc-2.2 problem workaround Changed files: sendmail-ipv6-glibc-2.2.patch -> 1.1 --- sendmail-ipv6-glibc-2.2.patch | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 sendmail-ipv6-glibc-2.2.patch diff --git a/sendmail-ipv6-glibc-2.2.patch b/sendmail-ipv6-glibc-2.2.patch new file mode 100644 index 0000000..ac23059 --- /dev/null +++ b/sendmail-ipv6-glibc-2.2.patch @@ -0,0 +1,24 @@ +diff -Nur sendmail-8.11.2.orig/sendmail/conf.c sendmail-8.11.2/sendmail/conf.c +--- sendmail-8.11.2.orig/sendmail/conf.c Thu Jan 4 21:46:38 2001 ++++ sendmail-8.11.2/sendmail/conf.c Thu Jan 4 21:45:27 2001 +@@ -4329,7 +4329,7 @@ + ** Support IPv6 as well as IPv4. + */ + +-#if NETINET6 && NEEDSGETIPNODE && __RES < 19990909 ++#if NETINET6 && NEEDSGETIPNODE && (__RES < 19990909 || (__GLIBC__ == 2 && __GLIBC_MINOR__ == 2)) + + # ifndef AI_DEFAULT + # define AI_DEFAULT 0 /* dummy */ +diff -Nur sendmail-8.11.2.orig/sendmail/conf.h sendmail-8.11.2/sendmail/conf.h +--- sendmail-8.11.2.orig/sendmail/conf.h Sat Dec 16 00:18:40 2000 ++++ sendmail-8.11.2/sendmail/conf.h Thu Jan 4 21:42:42 2001 +@@ -1459,7 +1459,7 @@ + # else /* (GLIBC_VERSION >= 0x201) */ + # include /* IPv6 support */ + # endif /* (GLIBC_VERSION >= 0x201) */ +-# if (GLIBC_VERSION == 0x201 && !defined(NEEDSGETIPNODE)) ++# if ((GLIBC_VERSION == 0x201 || GLIBC_VERSION == 0x202) && !defined(NEEDSGETIPNODE)) + /* Have APIs in , but no support in glibc */ + # define NEEDSGETIPNODE 1 + # endif /* (GLIBC_VERSION == 0x201 && ! NEEDSGETIPNODE) */ -- 2.44.0