components/libnet/patches/libnet-types.h.patch
changeset 650 e2fc423a4fd5
parent 626 a1f09864c0a1
--- a/components/libnet/patches/libnet-types.h.patch	Wed Jan 11 06:57:58 2012 -0800
+++ b/components/libnet/patches/libnet-types.h.patch	Wed Jan 11 11:05:09 2012 -0800
@@ -1,12 +1,19 @@
---- 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 @@
+--- libnet-1.1.5/include/libnet/libnet-types.h.orig	Sat Dec 17 16:12:12 2011
++++ libnet-1.1.5/include/libnet/libnet-types.h	Sat Dec 17 16:12:36 2011
+@@ -32,8 +32,14 @@
+ #ifndef __LIBNET_TYPES_H
  #define __LIBNET_TYPES_H
  
- /* Solaris has messed up POSIX nomenclature for these */
--#if (__sun__ && __svr4__)
+-/* libnet should be using the standard type names, so mapping standard
+- * to non-standard should not be necessary. */
++/* Solaris has messed up POSIX nomenclature for these */
 +#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;
++typedef uint8_t  u_int8_t;
++typedef uint16_t u_int16_t;
++typedef uint32_t u_int32_t;
++typedef uint64_t u_int64_t;
++#endif
+ 
+ #endif  /* __LIBNET_TYPES_H */
+