summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortv <tv>2004-04-16 20:11:51 +0000
committertv <tv>2004-04-16 20:11:51 +0000
commit1a85b9a89d7470c21f1aa01a9c2eca593e9e146d (patch)
treec228606bc2fa51bd50f06a6f7cc293a8a1c004b3
parent9649f609f7747c0bb95d2913d7e35c6e6278e4df (diff)
downloadpkgsrc-1a85b9a89d7470c21f1aa01a9c2eca593e9e146d.tar.gz
Make compile on Interix. It doesn't #define BSD, but it also needs the
"avoid MS-DOS setmode()" treatment.
-rw-r--r--devel/patch/Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/devel/patch/Makefile b/devel/patch/Makefile
index 43d91110709..ff13b37f19f 100644
--- a/devel/patch/Makefile
+++ b/devel/patch/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.17 2003/07/17 21:33:00 grant Exp $
+# $NetBSD: Makefile,v 1.18 2004/04/16 20:11:51 tv Exp $
#
DISTNAME= patch-2.5.4
@@ -30,7 +30,7 @@ do-patch:
${MV} ${WRKSRC}/pch.c ${WRKSRC}/pch.c.orig
${AWK} '/#include <pch.h>/{print $$0 "\n#include <sys/param.h>";next;}\
/^#if HAVE_SETMODE/ \
- {gsub(/^#if HAVE_SETMODE/,"#if defined(HAVE_SETMODE) \\&\\& (!(defined(BSD) \\&\\& BSD >= 199306))");print $$0; next; } \
+ {gsub(/^#if HAVE_SETMODE/,"#if defined(HAVE_SETMODE) \\&\\& !(defined(BSD) \\&\\& BSD >= 199306) \\&\\& !defined(__INTERIX)");print $$0; next; } \
{print $$0;}' \
< ${WRKSRC}/pch.c.orig \
> ${WRKSRC}/pch.c