freebsd-ports/devel/xwpe/files/patch-09
Ying-Chieh Liao e0ba684a1b upgrade to 1.5.29a
PR:		40493
Submitted by:	Ports Fury
2002-07-13 17:53:44 +00:00

27 lines
809 B
Text

--- we_fl_unix.c.orig Wed Jun 5 11:53:50 2002
+++ we_fl_unix.c Fri Jul 12 02:37:37 2002
@@ -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;
@@ -3532,7 +3536,12 @@
}
if ((!manpath) || (manpath[0] == '\0'))
{
- manpath = strdup("/usr/man:/usr/share/man:/usr/X11R6/man:/usr/local/man");
+ manpath = strdup(
+#if (defined(BSD) && (BSD >= 199306)) || (defined(sun) && defined(__svr4__))
+ "/usr/share/man:%%X11BASE%%/man:%%LOCALBASE%%/man");
+#else
+ "/usr/man:%%X11BASE%%/man:%%LOCALBASE%%/man");
+#endif
}
/* Allocate the maximum possible rather than continually realloc. */
sustr = malloc(strlen(manpath) + 10);