components/libnet/patches/libnet-types.h.patch
changeset 626 a1f09864c0a1
child 650 e2fc423a4fd5
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/libnet/patches/libnet-types.h.patch	Thu Dec 15 06:47:50 2011 -0800
@@ -0,0 +1,12 @@
+--- libnet-1.1.2.1/include/libnet/libnet-types.h.orig	Wed Dec 14 08:56:37 2011
++++ libnet-1.1.2.1/include/libnet/libnet-types.h	Wed Dec 14 10:39:57 2011
+@@ -33,7 +33,8 @@
+ #define __LIBNET_TYPES_H
+ 
+ /* Solaris has messed up POSIX nomenclature for these */
+-#if (__sun__ && __svr4__)
++#ifndef __BIT_TYPES_DEFINED__
++#define __BIT_TYPES_DEFINED__
+ typedef uint8_t  u_int8_t;
+ typedef uint16_t u_int16_t;
+ typedef uint32_t u_int32_t;