summaryrefslogtreecommitdiff
path: root/devel/patch
diff options
context:
space:
mode:
authortv <tv@pkgsrc.org>2004-04-16 20:11:51 +0000
committertv <tv@pkgsrc.org>2004-04-16 20:11:51 +0000
commit24ac597e113bf04c7af8363f0364089563fc312a (patch)
treec228606bc2fa51bd50f06a6f7cc293a8a1c004b3 /devel/patch
parentb6f39f109327634ba700a002f2716763cc626e48 (diff)
downloadpkgsrc-24ac597e113bf04c7af8363f0364089563fc312a.tar.gz
Make compile on Interix. It doesn't #define BSD, but it also needs the
"avoid MS-DOS setmode()" treatment.
Diffstat (limited to 'devel/patch')
-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