# HG changeset patch # User Rich Burridge # Date 1323960470 28800 # Node ID a1f09864c0a1cef090431968e22c56b7b8a17e36 # Parent a91e898823c427160b70aa8f7f34940681a22c19 6881496 libnet is not Sun Studio compatible diff -r a91e898823c4 -r a1f09864c0a1 components/libnet/Makefile --- a/components/libnet/Makefile Wed Dec 14 10:48:32 2011 -0800 +++ b/components/libnet/Makefile Thu Dec 15 06:47:50 2011 -0800 @@ -28,7 +28,7 @@ COMPONENT_NAME= libnet COMPONENT_VERSION= 1.1.2.1 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION) -COMPONENT_PROJECT_URL= http://www.packetfactory.net/libnet/ +COMPONENT_PROJECT_URL= http://packetfactory.openwall.net/projects/libnet/ COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz COMPONENT_ARCHIVE_HASH= sha1:9dca91ee0f19b1b9e5e60baaedb9bc44a30a1fc7 COMPONENT_ARCHIVE_URL= http://www.packetfactory.net/libnet/dist/deprecated/$(COMPONENT_ARCHIVE) diff -r a91e898823c4 -r a1f09864c0a1 components/libnet/patches/libnet-types.h.patch --- /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;