diff options
author | joerg <joerg@pkgsrc.org> | 2007-08-16 12:50:34 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2007-08-16 12:50:34 +0000 |
commit | 6eee19dc115c3b1480202e4ac35f60d2606b2bcb (patch) | |
tree | b668ef8358e3fdfb4217a33e05c31278e9e1bbd3 /pkgtools | |
parent | 4525751ea23a0a5590fb51e19a6d9ae8adcdc65d (diff) | |
download | pkgsrc-6eee19dc115c3b1480202e4ac35f60d2606b2bcb.tar.gz |
Work around broken default visibility in Linux (PR 36790).
Linux has sin_len either (PR 36791).
Diffstat (limited to 'pkgtools')
-rw-r--r-- | pkgtools/pbulk/Makefile | 6 | ||||
-rw-r--r-- | pkgtools/pbulk/files/pbulk/lib/netaddr.c | 4 |
2 files changed, 7 insertions, 3 deletions
diff --git a/pkgtools/pbulk/Makefile b/pkgtools/pbulk/Makefile index 9a99b04a5bd..b941fe6c06e 100644 --- a/pkgtools/pbulk/Makefile +++ b/pkgtools/pbulk/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.16 2007/08/16 09:27:05 tnn Exp $ +# $NetBSD: Makefile,v 1.17 2007/08/16 12:50:34 joerg Exp $ DISTNAME= pbulk-0.12 PKGREVISION= 1 @@ -61,6 +61,10 @@ LDADD+= -lsocket -lresolv MAKE_ENV+= LDADD=${LDADD:Q} .endif +.if ${OPSYS} == "Linux" +CPPFLAGS+= -D_GNU_SOURCE +.endif + .include "../../devel/libevent/buildlink3.mk" .include "../../pkgtools/libnbcompat/inplace.mk" .include "../../mk/bsd.pkg.mk" diff --git a/pkgtools/pbulk/files/pbulk/lib/netaddr.c b/pkgtools/pbulk/files/pbulk/lib/netaddr.c index 99008fa3923..f5c4981e99d 100644 --- a/pkgtools/pbulk/files/pbulk/lib/netaddr.c +++ b/pkgtools/pbulk/files/pbulk/lib/netaddr.c @@ -1,4 +1,4 @@ -/* $NetBSD: netaddr.c,v 1.5 2007/08/05 09:03:09 tnn Exp $ */ +/* $NetBSD: netaddr.c,v 1.6 2007/08/16 12:50:34 joerg Exp $ */ /*- * Copyright (c) 2007 Joerg Sonnenberger <joerg@NetBSD.org>. @@ -71,7 +71,7 @@ parse_sockaddr_in(const char *str, struct sockaddr_in *addr) addr->sin_port = htons((in_port_t)tmp); addr->sin_addr = in; #if !defined(__sun) && !defined(__hpux) && !defined(__INTERIX) && \ - !defined(__digital__) + !defined(__digital__) && !defined(__linux) addr->sin_len = sizeof(*addr); #endif addr->sin_family = AF_INET; |