From 9ee4c3a2650f7ad9508adf5a3e7fd1fe9d2971d0 Mon Sep 17 00:00:00 2001 From: hans Date: Thu, 16 Feb 2012 17:13:03 +0000 Subject: Fix build on SunOS. --- comms/gammu/Makefile | 4 +++- comms/gammu/distinfo | 3 ++- comms/gammu/patches/patch-contrib_smscgi_sms__cgi.c | 15 +++++++++++++++ 3 files changed, 20 insertions(+), 2 deletions(-) create mode 100644 comms/gammu/patches/patch-contrib_smscgi_sms__cgi.c (limited to 'comms/gammu') diff --git a/comms/gammu/Makefile b/comms/gammu/Makefile index 49a1a8cbc85..7c989caaa54 100644 --- a/comms/gammu/Makefile +++ b/comms/gammu/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.6 2011/04/22 13:43:09 obache Exp $ +# $NetBSD: Makefile,v 1.7 2012/02/16 17:13:03 hans Exp $ # .include "Makefile.common" @@ -33,6 +33,8 @@ REPLACE_BASH= utils/gammu-config utils/jadmaker # needed because of https://bugs.cihar.com/view.php?id=908 BUILDLINK_TRANSFORM+= rm:-Werror +LDFLAGS.SunOS+= -lintl + .include "../../devel/libusb/buildlink3.mk" .include "../../www/curl/buildlink3.mk" .include "../../mk/bsd.pkg.mk" diff --git a/comms/gammu/distinfo b/comms/gammu/distinfo index 5b9002e4984..67771144b2a 100644 --- a/comms/gammu/distinfo +++ b/comms/gammu/distinfo @@ -1,5 +1,6 @@ -$NetBSD: distinfo,v 1.6 2009/09/09 13:34:54 wiz Exp $ +$NetBSD: distinfo,v 1.7 2012/02/16 17:13:03 hans Exp $ SHA1 (gammu-1.26.1.tar.bz2) = 122886f29c566f72020e91da119e1e04f7bfbec6 RMD160 (gammu-1.26.1.tar.bz2) = a913ac6c999f81ab4fda7c1656232484033ac540 Size (gammu-1.26.1.tar.bz2) = 2113622 bytes +SHA1 (patch-contrib_smscgi_sms__cgi.c) = c7f40671374294ce90f17541b15529ee4ee649aa diff --git a/comms/gammu/patches/patch-contrib_smscgi_sms__cgi.c b/comms/gammu/patches/patch-contrib_smscgi_sms__cgi.c new file mode 100644 index 00000000000..0af4693a8c6 --- /dev/null +++ b/comms/gammu/patches/patch-contrib_smscgi_sms__cgi.c @@ -0,0 +1,15 @@ +$NetBSD: patch-contrib_smscgi_sms__cgi.c,v 1.1 2012/02/16 17:13:03 hans Exp $ + +--- contrib/smscgi/sms_cgi.c.orig 2009-09-08 09:57:12.000000000 +0200 ++++ contrib/smscgi/sms_cgi.c 2012-01-25 19:47:48.177845692 +0100 +@@ -26,6 +26,10 @@ + #include + #include + ++#ifdef __sun ++#include ++#endif ++ + #include "sms_cgi.h" + + /* Some systems let waitpid(2) tell callers about stopped children. */ -- cgit v1.2.3