pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/pkgtools/pbulk Work around broken default visibility i...
details: https://anonhg.NetBSD.org/pkgsrc/rev/55ebecbb3025
branches: trunk
changeset: 532350:55ebecbb3025
user: joerg <joerg%pkgsrc.org@localhost>
date: Thu Aug 16 12:50:34 2007 +0000
description:
Work around broken default visibility in Linux (PR 36790).
Linux has sin_len either (PR 36791).
diffstat:
pkgtools/pbulk/Makefile | 6 +++++-
pkgtools/pbulk/files/pbulk/lib/netaddr.c | 4 ++--
2 files changed, 7 insertions(+), 3 deletions(-)
diffs (38 lines):
diff -r 20dd2f9d8b97 -r 55ebecbb3025 pkgtools/pbulk/Makefile
--- a/pkgtools/pbulk/Makefile Thu Aug 16 12:47:54 2007 +0000
+++ b/pkgtools/pbulk/Makefile Thu Aug 16 12:50:34 2007 +0000
@@ -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 @@
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 -r 20dd2f9d8b97 -r 55ebecbb3025 pkgtools/pbulk/files/pbulk/lib/netaddr.c
--- a/pkgtools/pbulk/files/pbulk/lib/netaddr.c Thu Aug 16 12:47:54 2007 +0000
+++ b/pkgtools/pbulk/files/pbulk/lib/netaddr.c Thu Aug 16 12:50:34 2007 +0000
@@ -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@localhost>.
@@ -71,7 +71,7 @@
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;
Home |
Main Index |
Thread Index |
Old Index