1444N/AUpdate #ifdefs for Solaris to use correct groff options to get readable
1444N/Aoutput instead of raw PostScript output for man pages, and put the rest
1444N/Aof the groff utilities (tbl, pic, etc.) ahead of the SVR4 ones in $PATH.
1444N/A
1444N/Adiff --git a/main.c b/main.c
1444N/Aindex f75796d..ff364e2 100644
1444N/A--- a/main.c
1444N/A+++ b/main.c
1444N/A@@ -152,6 +152,18 @@ main(int argc, char **argv)
1444N/A saved_argv = (char **) XtMalloc(argc * sizeof(char *));
1444N/A bcopy(argv, saved_argv, argc * sizeof(char *));
1444N/A
1444N/A+#ifdef sun /* force use of groff tools vs. SVR4 nroff tools */
1444N/A+ {
1444N/A+ const char *orig_path = getenv("PATH");
1444N/A+ char *new_path;
1444N/A+
1444N/A+ if (asprintf(&new_path, "PATH=/usr/gnu/bin:%s",
1444N/A+ orig_path ? orig_path : "/usr/bin") != -1) {
1444N/A+ putenv(new_path);
1444N/A+ }
1444N/A+ }
1444N/A+#endif
1444N/A+
1444N/A XtSetLanguageProc(NULL, (XtLanguageProc) NULL, NULL);
1444N/A
1444N/A initial_widget = XtAppInitialize(&app_con, "Xman", xman_options,
1444N/Adiff --git a/vendor.h b/vendor.h
1444N/Aindex 548ded6..2ece09b 100644
1444N/A--- a/vendor.h
1444N/A+++ b/vendor.h
1444N/A@@ -159,7 +159,7 @@ from the X Consortium.
1444N/A # define REFER "refer"
1444N/A # if defined(CSRG_BASED)
1444N/A # define FORMAT "nroff -mandoc"
1444N/A-# elif defined(linux)
1444N/A+# elif defined(linux) || defined(sun)
1444N/A # define FORMAT "GROFF_NO_SGR= groff -Tlatin1 -mandoc"
1444N/A # elif defined(__DARWIN__)
1444N/A # define FORMAT "nroff -man"