Allow compilation with rhel7 glibc
This commit is contained in:
parent
592773825f
commit
e831398aae
13
ocserv-0.10.6-path-mtu.patch
Normal file
13
ocserv-0.10.6-path-mtu.patch
Normal file
@ -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 <c-ctype.h>
|
||||
#include <worker-bandwidth.h>
|
||||
|
||||
-#ifdef __linux__
|
||||
+#if 0
|
||||
/* for IPV6_PATHMTU */
|
||||
# include <linux/in6.h>
|
||||
#endif
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user