pkgsrc-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: pkg/30396: sysutils/fam build failure on MacOS X 10.2.8
Hi John!
On Thu, 2 Jun 2005 01:38:00 +0000 (UTC), jdbaker%mylinuxisp.com@localhost
wrote:
> The first failure has a simple workaround. MacOS X 10.2.8 does not
> define "socklen_t" unless the macro _BSD_SOCKLEN_T_ is defined as the
> appropriate scalar type. This is usually 'int'. So a workaround is:
Could you try the following patch? I don't have Mac OS X 10.2.8.
Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/sysutils/fam/Makefile,v
retrieving revision 1.25
diff -u -r1.25 Makefile
--- Makefile 22 May 2005 20:08:32 -0000 1.25
+++ Makefile 3 Jun 2005 14:01:04 -0000
@@ -57,6 +57,10 @@
.endif
CPPFLAGS.Darwin+= -DNDEBUG
+.if ${OPSYS} == "Darwin" && (OS_VERSION:M[0-6]\.*)
+CPPFLAGS+= -D_BSD_SOCKLEN_T_="unsigned int"
+.endif
+
LDFLAGS.SunOS+= -lsocket -lnsl
.if ${OPSYS} == "SunOS"
--
Yuji Yamano
Home |
Main Index |
Thread Index |
Old Index