- Unbreak

- Fix build on 8.X after RTF_WASCLONES removal

PR:		131540
Submitted by:	Steve Ames <steve@energistic.com> (maintainer)
This commit is contained in:
Martin Wilke 2009-02-09 21:58:03 +00:00
parent 953f777315
commit 23e2ca442a
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=227958
2 changed files with 12 additions and 4 deletions

View file

@ -7,7 +7,7 @@
PORTNAME= pwlib PORTNAME= pwlib
PORTVERSION= 1.12.0 PORTVERSION= 1.12.0
PORTREVISION= 4 PORTREVISION= 5
PORTEPOCH= 1 PORTEPOCH= 1
CATEGORIES= devel CATEGORIES= devel
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
@ -32,9 +32,6 @@ USE_LDCONFIG= yes
.include <bsd.port.pre.mk> .include <bsd.port.pre.mk>
.if ${OSVERSION} >= 800059
BROKEN= does not build
.endif
CFLAGS= -O1 CFLAGS= -O1
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS} -O1 -I${WRKSRC}/include -I${LOCALBASE}/include" \ CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS} -O1 -I${WRKSRC}/include -I${LOCALBASE}/include" \

View file

@ -0,0 +1,11 @@
--- src/ptlib/unix/socket.cxx.old 2007-10-19 02:22:32.000000000 -0400
+++ src/ptlib/unix/socket.cxx 2009-02-09 20:05:59.000000000 -0500
@@ -1446,7 +1446,7 @@
if ((~rtm->rtm_flags&RTF_LLINFO)
#if defined(P_NETBSD) || defined(P_QNX)
&& (~rtm->rtm_flags&RTF_CLONED) // Net BSD has flag one way
-#elif !defined(P_OPENBSD)
+#elif !defined(P_OPENBSD) && defined(RTF_WASCLONED)
&& (~rtm->rtm_flags&RTF_WASCLONED) // Free BSD/MAC has it another
#else
// Open BSD does not have it at all!