summaryrefslogtreecommitdiff
path: root/misc/most
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2006-12-17 17:17:19 +0000
committerjoerg <joerg@pkgsrc.org>2006-12-17 17:17:19 +0000
commitadf6f6e22c1a917d2d14ce8e5488c88db0936f71 (patch)
tree6e49d8e55f24037d0b1032d5a6bb4f8f224cc898 /misc/most
parent8ff652f8ab4f99c400e7d4e505bf785155b52273 (diff)
downloadpkgsrc-adf6f6e22c1a917d2d14ce8e5488c88db0936f71.tar.gz
Fix build on Mac OS X. From Steve Mynott in private mail.
Diffstat (limited to 'misc/most')
-rw-r--r--misc/most/Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/misc/most/Makefile b/misc/most/Makefile
index ffd7780d894..ddfd328e95a 100644
--- a/misc/most/Makefile
+++ b/misc/most/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.20 2006/10/04 21:49:19 wiz Exp $
+# $NetBSD: Makefile,v 1.21 2006/12/17 17:17:19 joerg Exp $
DISTNAME= most-4.9.0
PKGREVISION= 1
@@ -13,5 +13,12 @@ COMMENT= Pager (like less) which has support for windows and binary files
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --without-x
+.include "../../mk/bsd.prefs.mk"
+
+.if ${OPSYS} == "Darwin"
+# prevent duplicate definition of zopen
+CFLAGS+= -D_POSIX_C_SOURCE
+.endif
+
.include "../../devel/libslang/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"