diff options
author | Hajimu UMEMOTO <ume@FreeBSD.org> | 2007-07-06 01:24:36 +0800 |
---|---|---|
committer | Hajimu UMEMOTO <ume@FreeBSD.org> | 2007-07-06 01:24:36 +0800 |
commit | 45e9222cf249d54ca582598e14ac139ca7f283e0 (patch) | |
tree | 61366d60f625f20b9318e060cc2836f1a0020934 /net/p5-Socket6 | |
parent | 0081a31c47ab17d76f24cf50f1054287db7da3c7 (diff) | |
download | freebsd-ports-gnome-45e9222cf249d54ca582598e14ac139ca7f283e0.tar.gz freebsd-ports-gnome-45e9222cf249d54ca582598e14ac139ca7f283e0.tar.zst freebsd-ports-gnome-45e9222cf249d54ca582598e14ac139ca7f283e0.zip |
Make it buildable again on 7-current after KAME IPsec removal.
Since __FreeBSD_version was not bumped at that time, we use
nearest version to distinguish it. Since the macros which
Socket6 looking for are same with KAME's one, it is enough.
PR: ports/114299
Diffstat (limited to 'net/p5-Socket6')
-rw-r--r-- | net/p5-Socket6/files/patch-Socket6.xs | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/net/p5-Socket6/files/patch-Socket6.xs b/net/p5-Socket6/files/patch-Socket6.xs new file mode 100644 index 000000000000..61459caa9548 --- /dev/null +++ b/net/p5-Socket6/files/patch-Socket6.xs @@ -0,0 +1,21 @@ +Index: Socket6.xs +diff -u Socket6.xs.orig Socket6.xs +--- Socket6.xs.orig Sun Aug 28 01:53:11 2005 ++++ Socket6.xs Thu Jul 5 19:31:29 2007 +@@ -59,9 +59,14 @@ + #include <sys/socket.h> + #include <netinet/in.h> + #ifdef __KAME__ ++# include <sys/param.h> + # include <net/route.h> +-# ifndef __OpenBSD__ +-# include <netinet6/ipsec.h> ++# if defined(__FreeBSD__) && __FreeBSD_version >= 700048 ++# include <netipsec/ipsec.h> ++# else ++# ifndef __OpenBSD__ ++# include <netinet6/ipsec.h> ++# endif + # endif + #endif + #include <netdb.h> |