mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-05 22:43:24 +00:00
bfbaa15f89
PR: 17051 Submitted by: KATO Tsuguru <tkato@prontomail.ne.jp>
29 lines
820 B
Plaintext
29 lines
820 B
Plaintext
--- we_fl_unix.c.orig Mon Dec 27 08:11:38 1999
|
|
+++ we_fl_unix.c Sat Feb 26 05:55:53 2000
|
|
@@ -13,6 +13,10 @@
|
|
#include <sys/stat.h>
|
|
#include <errno.h>
|
|
|
|
+#if (defined(__unix__) || defined(unix)) && !defined(USG)
|
|
+#include <sys/param.h>
|
|
+#endif
|
|
+
|
|
struct dirfile *e_make_win_list(FENSTER * f);
|
|
extern char *e_tmp_dir;
|
|
extern int (*e_u_system) (char *exe);
|
|
@@ -3546,7 +3550,13 @@
|
|
if(getenv("MANPATH"))
|
|
strcpy(manpath, getenv("MANPATH"));
|
|
if(manpath[0] == '\0')
|
|
- strcpy(manpath, "/usr/man:/usr/local/man");
|
|
+ strcpy(manpath,
|
|
+#if (defined(BSD) && (BSD >= 199306)) || (defined(sun) && defined(__svr4__))
|
|
+ "/usr/share/man:%%LOCALBASE%%/man");
|
|
+#else
|
|
+ "/usr/man:/usr/local/man");
|
|
+#endif
|
|
+
|
|
while(manpath[i])
|
|
{
|
|
for(n = 0; (subpath[n] = manpath[i]) && manpath[i] != PTHD; i++, n++);
|