summaryrefslogtreecommitdiff
path: root/time/cal/patches
diff options
context:
space:
mode:
authortv <tv@pkgsrc.org>2005-01-25 03:37:29 +0000
committertv <tv@pkgsrc.org>2005-01-25 03:37:29 +0000
commitf53a26e7cf70548b43168430e77b663e153f8406 (patch)
tree6b7d77213722d9e9a6cac0bb4ac914488ed834d4 /time/cal/patches
parent5a8890e74b813caee17e76b9afcdbd877a236c9d (diff)
downloadpkgsrc-f53a26e7cf70548b43168430e77b663e153f8406.tar.gz
Fix Interix build.
Diffstat (limited to 'time/cal/patches')
-rw-r--r--time/cal/patches/patch-ab12
1 files changed, 6 insertions, 6 deletions
diff --git a/time/cal/patches/patch-ab b/time/cal/patches/patch-ab
index cb044d4f68a..ed9fea5a4c0 100644
--- a/time/cal/patches/patch-ab
+++ b/time/cal/patches/patch-ab
@@ -1,8 +1,8 @@
-$NetBSD: patch-ab,v 1.4 2004/09/05 20:37:27 jschauma Exp $
+$NetBSD: patch-ab,v 1.5 2005/01/25 03:37:29 tv Exp $
--- cal.c.orig 1996-07-11 15:36:33.000000000 -0400
-+++ cal.c 2004-09-05 13:52:11.000000000 -0400
-@@ -122,6 +122,7 @@
++++ cal.c
+@@ -122,6 +122,7 @@ BASIC DATA STRUCTURE:
#include <ctype.h>
#include <string.h>
#include <sys/types.h>
@@ -10,18 +10,18 @@ $NetBSD: patch-ab,v 1.4 2004/09/05 20:37:27 jschauma Exp $
#ifndef max
#define max(a,b) (((a)>(b))?(a):(b))
-@@ -130,6 +131,10 @@
+@@ -130,6 +131,10 @@ BASIC DATA STRUCTURE:
/* Note: Other unix systems may require this next re-define to work. */
/* I believe that SCO is one such system. Please send in any fixes */
/* needed to get your system running. */
-+#if (defined(BSD) && BSD >= 199306) || defined (sun) || defined(__sgi)
++#if (defined(BSD) && BSD >= 199306) || defined (sun) || defined(__sgi) || defined(__INTERIX)
+#define stricmp(a,b) strcasecmp(a,b) /* case-insensitive string comparison */
+#endif
+
#ifdef __linux__ /* Make linux compatible with stricmp() */
#define stricmp(a,b) strcasecmp(a,b) /* case-insensitive string comparison */
#endif
-@@ -1401,8 +1406,8 @@
+@@ -1401,8 +1406,8 @@ FILE *efopen(const char *file, const cha
strcpy(str, ".");
strcpy(str, file);
if ((fp = fopen(str, mode)) == NULL) {