From e831398aae571fc81f029d32cbcd48489f7cf37e Mon Sep 17 00:00:00 2001 From: Nikos Mavrogiannopoulos Date: Thu, 2 Jul 2015 10:03:37 +0200 Subject: [PATCH] Allow compilation with rhel7 glibc --- ocserv-0.10.6-path-mtu.patch | 13 +++++++++++++ ocserv.spec | 4 ++++ 2 files changed, 17 insertions(+) create mode 100644 ocserv-0.10.6-path-mtu.patch diff --git a/ocserv-0.10.6-path-mtu.patch b/ocserv-0.10.6-path-mtu.patch new file mode 100644 index 0000000..8f54ce8 --- /dev/null +++ b/ocserv-0.10.6-path-mtu.patch @@ -0,0 +1,13 @@ +diff --git a/src/worker-vpn.c b/src/worker-vpn.c +index 7765e84..cf2a6b6 100644 +--- a/src/worker-vpn.c ++++ b/src/worker-vpn.c +@@ -46,7 +46,7 @@ + #include + #include + +-#ifdef __linux__ ++#if 0 + /* for IPV6_PATHMTU */ + # include + #endif diff --git a/ocserv.spec b/ocserv.spec index 44b558d..8d698fd 100644 --- a/ocserv.spec +++ b/ocserv.spec @@ -17,6 +17,7 @@ Source4: PACKAGE-LICENSING Source6: ftp://ftp.infradead.org/pub/ocserv/%{name}-%{version}.tar.xz.sig Source7: ocserv-genkey Source8: ocserv-script +Patch0: ocserv-0.10.6-path-mtu.patch # Taken from upstream: # http://git.infradead.org/ocserv.git/commitdiff/7d70006a2dbddf783213f1856374bacc74217e09 @@ -74,6 +75,9 @@ to provide the secure VPN service. %prep %setup -q + +%patch0 -p1 -b .path-mtu + rm -f src/http-parser/http_parser.c src/http-parser/http_parser.h rm -rf src/protobuf/ rm -rf src/ccan/talloc