summaryrefslogtreecommitdiffstats
path: root/gnu
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>1999-11-23 03:34:17 +0000
committerache <ache@FreeBSD.org>1999-11-23 03:34:17 +0000
commit14a4cc52b13d77dcb9dee0d03a4d739c58fa2c5c (patch)
treeb6efbb6549e627cb88d4409a7af43fdd962d6fe6 /gnu
parentf38c79cea92979acc8c172d1886b2af272a4ee87 (diff)
downloadFreeBSD-src-14a4cc52b13d77dcb9dee0d03a4d739c58fa2c5c.zip
FreeBSD-src-14a4cc52b13d77dcb9dee0d03a4d739c58fa2c5c.tar.gz
#ifdef MAIN locale additions to build man
Diffstat (limited to 'gnu')
-rw-r--r--gnu/usr.bin/man/manpath/manpath.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gnu/usr.bin/man/manpath/manpath.c b/gnu/usr.bin/man/manpath/manpath.c
index cb6fdfb..414ffd6 100644
--- a/gnu/usr.bin/man/manpath/manpath.c
+++ b/gnu/usr.bin/man/manpath/manpath.c
@@ -147,6 +147,7 @@ manpath (perrs)
if (get_dirlist ())
gripe_reading_mp_config (config_file);
+#ifdef MAIN
if (locale)
{
if ((manpathlist = getenv ("MANLOCALES")) != NULL)
@@ -160,6 +161,7 @@ manpath (perrs)
}
return (man_locales ? man_locales : "");
}
+#endif /* MAIN */
if ((manpathlist = getenv ("MANPATH")) != NULL)
/*
@@ -279,6 +281,7 @@ get_dirlist ()
fprintf (stderr, "found manpath map %s --> %s\n",
dlp->bin, dlp->mandir);
}
+#ifdef MAIN
else if (!strncmp ("MANLOCALES", bp, 10))
{
if ((p = strchr (bp, ' ')) == NULL &&
@@ -310,6 +313,7 @@ get_dirlist ()
fprintf (stderr, "found man locales: %s\n",
man_locales);
}
+#endif /* MAIN */
else
{
gripe_reading_mp_config (config_file);
OpenPOWER on IntegriCloud