mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-23 00:43:28 +00:00
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
This commit is contained in:
parent
0081a31c47
commit
45e9222cf2
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=195021
21
net/p5-Socket6/files/patch-Socket6.xs
Normal file
21
net/p5-Socket6/files/patch-Socket6.xs
Normal file
@ -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>
|
Loading…
Reference in New Issue
Block a user