summaryrefslogtreecommitdiff
path: root/deskutils/cal/files/patch-ab
blob: 200d34f582b62a8ecb990e03a634b7dfd887b7cb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
*** cal.c	Thu Dec 28 05:43:12 1995
--- /home/andy/ports/cal/src/source/cal.c	Sat Jun 22 15:47:26 1996
***************
*** 128,133 ****
--- 128,137 ----
  #define stricmp(a,b) strcasecmp(a,b) /* case-insensitive string comparison */
  #endif
  
+ #ifdef __FreeBSD__        /* Make FreeBSD compatible with stricmp() */
+ #define stricmp(a,b) strcasecmp(a,b) /* case-insensitive string comparison */
+ #endif
+ 
  #ifdef __ZTC__            /* make Zortech compatible with stricmp() */
  #define stricmp(a,b) strcmpl(a,b) /* case-insensitive string comparison */
  #endif /* __ZTC__ */
***************
*** 1090,1096 ****
--- 1094,1104 ----
         strcpy(str, file);
         if ((fp = fopen(str, mode)) == NULL) {
            /* If still not found then look in a lib directory */
+ #ifdef PREFIX
+           strcpy(str, PREFIX "/etc/cal/");
+ #else
            strcpy(str, "/usr/lib/");
+ #endif
            strcat(str,file);
            fp = fopen(str, mode);
            }