From cfa33ca2f81224ebd6ef6c8c1d4d7981a4640254 Mon Sep 17 00:00:00 2001 From: hans Date: Thu, 16 Feb 2012 15:00:58 +0000 Subject: Fix build on SunOS. --- chat/iip/Makefile | 4 +++- chat/iip/distinfo | 5 +++-- chat/iip/patches/patch-aa | 13 ++++++++++--- chat/iip/patches/patch-src_misc_unix.c | 16 ++++++++++++++++ 4 files changed, 32 insertions(+), 6 deletions(-) create mode 100644 chat/iip/patches/patch-src_misc_unix.c (limited to 'chat/iip') diff --git a/chat/iip/Makefile b/chat/iip/Makefile index 1b1c41e7713..3423d3dc245 100644 --- a/chat/iip/Makefile +++ b/chat/iip/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.8 2008/04/07 17:22:11 joerg Exp $ +# $NetBSD: Makefile,v 1.9 2012/02/16 15:00:58 hans Exp $ # DISTNAME= iip-1.1.0 @@ -12,6 +12,8 @@ COMMENT= The Invisible IRC Project PKG_DESTDIR_SUPPORT= user-destdir +LDFLAGS.SunOS+= -lsocket -lnsl + BUILD_DIRS= src MAKE_FLAGS+= CC=${CC:Q} MAKE_FLAGS+= LD=${CC:Q} diff --git a/chat/iip/distinfo b/chat/iip/distinfo index fb60cce34a7..d712282fce1 100644 --- a/chat/iip/distinfo +++ b/chat/iip/distinfo @@ -1,6 +1,7 @@ -$NetBSD: distinfo,v 1.2 2005/12/13 16:59:37 joerg Exp $ +$NetBSD: distinfo,v 1.3 2012/02/16 15:00:58 hans Exp $ SHA1 (iip-1.1.0.tgz) = 722ce551c3d330aad04729a4c9b729b10a0ca960 RMD160 (iip-1.1.0.tgz) = 5acc5e33bd060bbdc79e819ade9e5ef07ed7299c Size (iip-1.1.0.tgz) = 139021 bytes -SHA1 (patch-aa) = 1c0c4bc32c84d0a95b2f88302547a218059ef00f +SHA1 (patch-aa) = 73b7d1be726bf639a97f404f2ea5219d0f48bf50 +SHA1 (patch-src_misc_unix.c) = 2f72adc7dd64386ac1b41538ea21d10e390dcca4 diff --git a/chat/iip/patches/patch-aa b/chat/iip/patches/patch-aa index ea2d49d3a55..34060fcf10b 100644 --- a/chat/iip/patches/patch-aa +++ b/chat/iip/patches/patch-aa @@ -1,13 +1,20 @@ -$NetBSD: patch-aa,v 1.1 2005/12/13 16:59:37 joerg Exp $ +$NetBSD: patch-aa,v 1.2 2012/02/16 15:00:58 hans Exp $ --- src/misc/compat.h.orig 2005-12-13 16:46:43.000000000 +0000 +++ src/misc/compat.h -@@ -70,7 +70,9 @@ +@@ -70,7 +70,16 @@ #if defined(_WINDOZE_) || defined(_CYGWIN_) #define LITTLE__ENDIAN #else -#if defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__MACH__) || defined(__NetBSD__) -+#if defined(__DragonFly__) ++#if defined(__sun) ++#include ++#ifdef _BIG_ENDIAN ++#define BIG__ENDIAN ++#else ++#define LITTLE__ENDIAN ++#endif ++#elif defined(__DragonFly__) +#include +#elif defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__MACH__) || defined(__NetBSD__) #include diff --git a/chat/iip/patches/patch-src_misc_unix.c b/chat/iip/patches/patch-src_misc_unix.c new file mode 100644 index 00000000000..2fbbc669dc7 --- /dev/null +++ b/chat/iip/patches/patch-src_misc_unix.c @@ -0,0 +1,16 @@ +$NetBSD: patch-src_misc_unix.c,v 1.1 2012/02/16 15:00:58 hans Exp $ + +--- src/misc/unix.c.orig 2002-06-21 05:27:01.000000000 +0200 ++++ src/misc/unix.c 2012-01-20 18:18:01.041438535 +0100 +@@ -11,11 +11,7 @@ + #include + #include + #include +-/* +-#if !defined(LOCK_EX) && !defined(LOCK_NB) + #include +-#endif +-*/ + #include + #include + -- cgit v1.2.3