pkgsrc/comms/malsync/patches/patch-ab
wiz 3a15fc9fae Update to 2.1.1 to make it work with current pilot-link-libs.
Changes since 2.0.5: ChangeLog only documents portability
fixes, but is incomplete.
2003-01-13 18:29:52 +00:00

21 lines
758 B
Text

$NetBSD: patch-ab,v 1.2 2003/01/13 18:29:53 wiz Exp $
--- mal/common/AGNet.h.orig Fri Jan 5 17:50:07 2001
+++ mal/common/AGNet.h
@@ -54,6 +54,7 @@
# else /* defined(macintosh) */
# include <netdb.h>
# include <sys/types.h>
+# include <sys/param.h>
# include <sys/socket.h>
# include <unistd.h>
# include <netinet/in.h>
@@ -61,7 +62,7 @@
# include <sys/filio.h>
# include <arpa/inet.h>
# else
-# if defined(__FreeBSD__) || defined(_HPUX_SOURCE)
+# if (defined(BSD) && BSD >= 199306) || defined(_HPUX_SOURCE)
# include <sys/ioctl.h>
# include <arpa/inet.h>
# else