diff options
author | hans <hans@pkgsrc.org> | 2012-02-16 16:40:34 +0000 |
---|---|---|
committer | hans <hans@pkgsrc.org> | 2012-02-16 16:40:34 +0000 |
commit | 5b3c5c0f697210004ea94e653b944aa75f305458 (patch) | |
tree | b2cf7583ab9bb7f595ded85a039a7d6c5c365f3d /comms/birda | |
parent | 48a2d9372e7095f15ee6ad8f191934cf5fa50c20 (diff) | |
download | pkgsrc-5b3c5c0f697210004ea94e653b944aa75f305458.tar.gz |
Fix build on SunOS.
Diffstat (limited to 'comms/birda')
-rw-r--r-- | comms/birda/Makefile | 4 | ||||
-rw-r--r-- | comms/birda/distinfo | 3 | ||||
-rw-r--r-- | comms/birda/patches/patch-src_sendobex.c | 16 |
3 files changed, 21 insertions, 2 deletions
diff --git a/comms/birda/Makefile b/comms/birda/Makefile index e451a34d82a..673609d8153 100644 --- a/comms/birda/Makefile +++ b/comms/birda/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.21 2009/06/30 00:07:11 joerg Exp $ +# $NetBSD: Makefile,v 1.22 2012/02/16 16:40:34 hans Exp $ # DISTNAME= birda-1.3 @@ -17,4 +17,6 @@ INSTALLATION_DIRS= bin ${PKGMANDIR}/cat1 ${PKGMANDIR}/man1 PKG_DESTDIR_SUPPORT= user-destdir +LDFLAGS.SunOS+= -lsocket -lnsl + .include "../../mk/bsd.pkg.mk" diff --git a/comms/birda/distinfo b/comms/birda/distinfo index 983cb677db7..22bd4c5ac22 100644 --- a/comms/birda/distinfo +++ b/comms/birda/distinfo @@ -1,7 +1,8 @@ -$NetBSD: distinfo,v 1.18 2011/09/25 19:40:28 joerg Exp $ +$NetBSD: distinfo,v 1.19 2012/02/16 16:40:34 hans Exp $ SHA1 (birda-1.3.tar.gz) = c72a2e05153f82e9e27e5cf36970a49ae122dbfe RMD160 (birda-1.3.tar.gz) = b53823b22db733a65cea515eadca59aa1024c96a Size (birda-1.3.tar.gz) = 57848 bytes SHA1 (patch-aa) = 5dc29878d541f354d5ed4b0cc910ca6d57d498fe SHA1 (patch-src-iassrv.c) = 538b6af337d278e1d435109b1651a97223979dc6 +SHA1 (patch-src_sendobex.c) = d04e130a295dfb18a01aec8679df3fd70c0a09eb diff --git a/comms/birda/patches/patch-src_sendobex.c b/comms/birda/patches/patch-src_sendobex.c new file mode 100644 index 00000000000..7ad4b601df5 --- /dev/null +++ b/comms/birda/patches/patch-src_sendobex.c @@ -0,0 +1,16 @@ +$NetBSD: patch-src_sendobex.c,v 1.1 2012/02/16 16:40:34 hans Exp $ + +--- src/sendobex.c.orig 2005-11-14 08:57:16.000000000 +0100 ++++ src/sendobex.c 2012-01-25 16:30:35.349985033 +0100 +@@ -327,7 +327,11 @@ void createOBEXSender(int port) + //struct sockaddr addr; + //socklen_t len; + fprintf(stderr, "Socket fd=%d\n", sc->socket); ++#ifdef __sun ++ error = fcntl(sc->socket, F_SETFL, O_NONBLOCK); ++#else + error = fcntl(sc->socket, F_SETFL, O_NONBLOCK | O_ASYNC); ++#endif + if (error == -1) { + perror("Couldn't fcntl socket\n"); + } |