freebsd-ports/net/libnet/files/patch-include-libnet.h.in
Sunpoet Po-Chuan Hsieh 8ed03fb8db - Backport upstream fixes (from 1.2 to 1.1.6)
- Bump PORTREVISION for package change
- While I'm here, rename patch-libnet.h.in to patch-include-libnet.h.in

PR:		196818
Submitted by:	Kevin Hung <khung@nullaxiom.com> (via email)
Obtained from:	18cbe497dd
		2e724b2f5c
		408fa2266a
		c9390bf8f3
2015-01-18 10:36:16 +00:00

12 lines
340 B
C

--- include/libnet.h.in.orig 2012-03-06 01:45:46.000000000 +0100
+++ include/libnet.h.in
@@ -81,6 +81,9 @@
#if !defined(__WIN32__)
# include <sys/socket.h>
# include <net/if.h>
+# if defined (__FreeBSD__) || defined (__DragonFly__)
+# include <netinet/in.h>
+# endif
#else /* __WIN32__ */
# if (__CYGWIN__)
# include <sys/socket.h>