diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2024-02-12 19:06:59 -0800 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2024-02-12 19:06:59 -0800 |
commit | 3ecea7a4526f571949b9d45430cfc44c59e406b6 (patch) | |
tree | 6fa03151f0ecae94cb137ede9942c18bc0d801aa | |
parent | 70ebfeb53325e65c9b11aca55d1722a9a76f8aa9 (diff) |
unifdef defined(SVR4) && !defined(sun)
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r-- | vendor.c | 21 | ||||
-rw-r--r-- | vendor.h | 4 |
2 files changed, 3 insertions, 22 deletions
@@ -38,25 +38,6 @@ typedef struct sectionName { const char *suffix; } SectionNameRec; -#if defined(SVR4) && !defined(sun) - -static SectionNameRec SectionNames[] = { - {"(1) User Commands", "1"}, - {"(1m) Sys, Administration", "1m"}, - {"(2) System Calls", "2"}, - {"(3) Subroutines", "3"}, - {"(4) File Formats", "4"}, - {"(5) Miscellaneous", "5"}, - {"(6) Games", "6"}, - {"(7) Devices", "7"}, - {"(8) Sys. Administration", "8"}, - {"(l) Local", "l"}, - {"(n) New", "n"}, - {"(o) Old", "o"} -}; - -#else - #if defined(sun) && defined(SVR4) /* losing man.cf is useless because it has no section names */ @@ -177,7 +158,7 @@ static SectionNameRec SectionNames[] = { }; #endif -#endif + /* Function Name: AddStandardSections * Description: Adds all the standard sections to the list for this path. @@ -52,7 +52,7 @@ from the X Consortium. #define SEARCHDIR MAN -#if (defined(SVR4) && !defined(sun)) || (defined(BSD) && (BSD >= 199103)) || defined(linux) || defined(__CYGWIN__) +#if (defined(BSD) && (BSD >= 199103)) || defined(linux) || defined(__CYGWIN__) # define SEARCHOTHER CAT #endif @@ -70,7 +70,7 @@ from the X Consortium. # define SYSMANPATH "/usr/share/man:/usr/local/man:/usr/X11R6/man" #elif defined(SVR4) && defined(sun) # define SYSMANPATH "/usr/share/man:/usr/X11/man:/usr/openwin/share/man:/usr/dt/share/man:/usr/sfw/share/man" -#elif defined(SVR4) || (defined(BSD) && (BSD >= 199103)) +#elif (defined(BSD) && (BSD >= 199103)) # define SYSMANPATH "/usr/share/man" #endif |