summaryrefslogtreecommitdiff
path: root/time/cal/patches/patch-ab
diff options
context:
space:
mode:
Diffstat (limited to 'time/cal/patches/patch-ab')
-rw-r--r--time/cal/patches/patch-ab17
1 files changed, 7 insertions, 10 deletions
diff --git a/time/cal/patches/patch-ab b/time/cal/patches/patch-ab
index 538f453a3b7..59fcb26946b 100644
--- a/time/cal/patches/patch-ab
+++ b/time/cal/patches/patch-ab
@@ -1,8 +1,8 @@
-$NetBSD: patch-ab,v 1.1.1.1 2000/12/17 23:32:10 wiz Exp $
+$NetBSD: patch-ab,v 1.2 2003/01/03 22:22:11 jmmv Exp $
--- cal.c.orig Thu Jul 11 21:36:33 1996
-+++ cal.c Thu Oct 23 14:37:49 1997
-@@ -122,6 +122,7 @@
++++ cal.c
+@@ -122,6 +122,7 @@ BASIC DATA STRUCTURE:
#include <ctype.h>
#include <string.h>
#include <sys/types.h>
@@ -10,7 +10,7 @@ $NetBSD: patch-ab,v 1.1.1.1 2000/12/17 23:32:10 wiz 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. */
@@ -21,17 +21,14 @@ $NetBSD: patch-ab,v 1.1.1.1 2000/12/17 23:32:10 wiz Exp $
#ifdef __linux__ /* Make linux compatible with stricmp() */
#define stricmp(a,b) strcasecmp(a,b) /* case-insensitive string comparison */
#endif
-@@ -1401,8 +1406,12 @@
+@@ -1401,8 +1406,8 @@ FILE *efopen(const char *file, const cha
strcpy(str, ".");
strcpy(str, file);
if ((fp = fopen(str, mode)) == NULL) {
- /* If still not found then look in a lib directory */
+- strcpy(str, "/usr/lib/");
+ /* If still not found then look in config directory */
-+#ifdef PREFIX
-+ strcpy(str, PREFIX "/etc/cal/");
-+#else
- strcpy(str, "/usr/lib/");
-+#endif
++ strcpy(str, PKG_SYSCONFDIR "/");
strcat(str,file);
fp = fopen(str, mode);
}