ports/editors/xwpe/patches/patch-we_fl_unix_c

16 lines
603 B
Text

--- we_fl_unix.c.orig Tue Dec 9 11:35:46 2008
+++ we_fl_unix.c Tue Dec 9 11:36:54 2008
@@ -3532,7 +3532,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);