components/libnet/patches/libnet-types.h.patch
author Rich Burridge <rich.burridge@oracle.com>
Thu, 15 Dec 2011 06:47:50 -0800
changeset 626 a1f09864c0a1
child 650 e2fc423a4fd5
permissions -rw-r--r--
6881496 libnet is not Sun Studio compatible
--- 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;