pkgsrc/editors/manedit/patches/patch-ac

31 lines
1.1 KiB
Text

$NetBSD: patch-ac,v 1.5 2011/12/08 06:49:41 marino Exp $
--- pref.c.orig 2007-02-11 09:00:00.000000000 +0100
+++ pref.c 2007-10-14 09:27:47.000000000 +0200
@@ -1705,7 +1705,7 @@ static void PrefCreatePanelLocations(pre
* first index of the text array (that's text[0]).
*/
-#if defined(__FreeBSD__)
+#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__DragonFly__)
text[0] = "/usr/share/man";
#else
text[0] = "/usr/man";
@@ -1713,7 +1713,7 @@ static void PrefCreatePanelLocations(pre
text[1] = "Global";
gtk_clist_append(GTK_CLIST(w), text);
-#if defined(__FreeBSD__)
+#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__DragonFly__)
text[0] = LOCALBASE "/man";
#else
text[0] = "/usr/local/man";
@@ -1721,7 +1721,7 @@ static void PrefCreatePanelLocations(pre
text[1] = "Local";
gtk_clist_append(GTK_CLIST(w), text);
-#if defined(__FreeBSD__)
+#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__DragonFly__)
text[0] = X11BASE"/man";
#else
text[0] = "/usr/X11R6/man";