fba6be3632
- specify license version - re-format DESCR
28 lines
924 B
Plaintext
28 lines
924 B
Plaintext
$OpenBSD: patch-we_fl_unix_c,v 1.2 2008/12/09 10:46:35 jasper Exp $
|
|
--- we_fl_unix.c.orig Tue Dec 9 11:35:46 2008
|
|
+++ we_fl_unix.c Tue Dec 9 11:36:54 2008
|
|
@@ -12,6 +12,9 @@
|
|
#include <sys/types.h>
|
|
#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 +3535,12 @@ struct dirfile *e_make_funct(char *man)
|
|
}
|
|
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:/usr/local/man");
|
|
+#else
|
|
+ "/usr/man:/usr/local/man");
|
|
+#endif
|
|
}
|
|
/* Allocate the maximum possible rather than continually realloc. */
|
|
sustr = malloc(strlen(manpath) + 10);
|