Lines 1-5
Link Here
|
1 |
--- we_fl_unix.c.orig Mon Dec 27 08:11:38 1999 |
1 |
--- we_fl_unix.c.orig Wed Jun 5 11:53:50 2002 |
2 |
+++ we_fl_unix.c Sat Feb 26 05:55:53 2000 |
2 |
+++ we_fl_unix.c Fri Jul 12 02:37:37 2002 |
3 |
@@ -13,6 +13,10 @@ |
3 |
@@ -13,6 +13,10 @@ |
4 |
#include <sys/stat.h> |
4 |
#include <sys/stat.h> |
5 |
#include <errno.h> |
5 |
#include <errno.h> |
Lines 10-28
Link Here
|
10 |
+ |
10 |
+ |
11 |
struct dirfile *e_make_win_list(FENSTER * f); |
11 |
struct dirfile *e_make_win_list(FENSTER * f); |
12 |
extern char *e_tmp_dir; |
12 |
extern char *e_tmp_dir; |
13 |
extern int (*e_u_system) (char *exe); |
13 |
|
14 |
@@ -3546,7 +3550,13 @@ |
14 |
@@ -3532,7 +3536,12 @@ |
15 |
if(getenv("MANPATH")) |
15 |
} |
16 |
strcpy(manpath, getenv("MANPATH")); |
16 |
if ((!manpath) || (manpath[0] == '\0')) |
17 |
if(manpath[0] == '\0') |
17 |
{ |
18 |
- strcpy(manpath, "/usr/man:/usr/local/man"); |
18 |
- manpath = strdup("/usr/man:/usr/share/man:/usr/X11R6/man:/usr/local/man"); |
19 |
+ strcpy(manpath, |
19 |
+ manpath = strdup( |
20 |
+#if (defined(BSD) && (BSD >= 199306)) || (defined(sun) && defined(__svr4__)) |
20 |
+#if (defined(BSD) && (BSD >= 199306)) || (defined(sun) && defined(__svr4__)) |
21 |
+ "/usr/share/man:%%LOCALBASE%%/man"); |
21 |
+ "/usr/share/man:%%X11BASE%%/man:%%LOCALBASE%%/man"); |
22 |
+#else |
22 |
+#else |
23 |
+ "/usr/man:/usr/local/man"); |
23 |
+ "/usr/man:%%X11BASE%%/man:%%LOCALBASE%%/man"); |
24 |
+#endif |
24 |
+#endif |
25 |
+ |
25 |
} |
26 |
while(manpath[i]) |
26 |
/* Allocate the maximum possible rather than continually realloc. */ |
27 |
{ |
27 |
sustr = malloc(strlen(manpath) + 10); |
28 |
for(n = 0; (subpath[n] = manpath[i]) && manpath[i] != PTHD; i++, n++); |
|
|