openbsd-ports/editors/xwpe/patches/patch-we_fl_unix_c
2007-10-26 20:44:35 +00:00

29 lines
938 B
Plaintext

$OpenBSD: patch-we_fl_unix_c,v 1.1 2007/10/26 20:49:32 ajacoutot Exp $
--- we_fl_unix.c.orig Mon Dec 27 00:11:38 1999
+++ we_fl_unix.c Fri Oct 26 22:47:35 2007
@@ -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;
@@ -3546,7 +3549,13 @@ struct dirfile *e_make_funct(char *man)
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:/usr/local/man");
+#else
+ "/usr/man:/usr/local/man");
+#endif
+
while(manpath[i])
{
for(n = 0; (subpath[n] = manpath[i]) && manpath[i] != PTHD; i++, n++);