aboutsummaryrefslogtreecommitdiff
path: root/examples/openpgm/patches/000_ifr_netmask.patch
diff options
context:
space:
mode:
authorIgor Pashev <igor.pashev@nexenta.com>2012-09-24 07:50:06 +0400
committerIgor Pashev <igor.pashev@nexenta.com>2012-09-24 07:50:06 +0400
commit66890fd48bba612044f1104f5376e58016e9168e (patch)
treedb17d1096a7a551e6ca1f43f830025e4c5f907a0 /examples/openpgm/patches/000_ifr_netmask.patch
parent8347d01cc71290efcbb7771adcc90f80549bfa0f (diff)
downloadcibs-66890fd48bba612044f1104f5376e58016e9168e.tar.gz
Examples: openpgm + zeromq
Diffstat (limited to 'examples/openpgm/patches/000_ifr_netmask.patch')
-rw-r--r--examples/openpgm/patches/000_ifr_netmask.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/examples/openpgm/patches/000_ifr_netmask.patch b/examples/openpgm/patches/000_ifr_netmask.patch
new file mode 100644
index 0000000..20fc94e
--- /dev/null
+++ b/examples/openpgm/patches/000_ifr_netmask.patch
@@ -0,0 +1,15 @@
+Index: libpgm-5.1.118-1~dfsg/openpgm/pgm/configure.ac
+===================================================================
+--- libpgm-5.1.118-1~dfsg.orig/openpgm/pgm/configure.ac 2011-09-27 17:59:08.000000000 +0000
++++ libpgm-5.1.118-1~dfsg/openpgm/pgm/configure.ac 2012-06-06 20:21:04.407905323 +0000
+@@ -184,8 +184,8 @@
+ AC_COMPILE_IFELSE(
+ [AC_LANG_PROGRAM([[#include <sys/types.h>
+ #include <ifaddrs.h>]],
+- [[struct ifaddrs ifa;
+-ifa.ifa_netmask = (struct sockaddr*)0;]])],
++ [[struct ifreq ifr;
++ifr.ifr_netmask = (struct sockaddr*)0;]])],
+ [AC_MSG_RESULT([yes])
+ CFLAGS="$CFLAGS -DCONFIG_HAVE_IFR_NETMASK"],
+ [AC_MSG_RESULT([no])])