Use POSIX macros for linux
This commit is contained in:
@@ -42,7 +42,7 @@
|
||||
#endif
|
||||
#include <ctype.h>
|
||||
|
||||
#if defined(hpux) || defined(_AIX) || defined(sun) || defined(linux) || defined(CSRG_BASED)
|
||||
#if defined(hpux) || defined(_AIX) || defined(sun) || defined(__linux__) || defined(CSRG_BASED)
|
||||
#include <unistd.h>
|
||||
#include <locale.h>
|
||||
#endif
|
||||
@@ -162,7 +162,7 @@ EXTERN char driver[20]
|
||||
#if defined(_AIX)
|
||||
INIT("AIX")
|
||||
#endif
|
||||
#if defined(linux)
|
||||
#if defined(__linux__)
|
||||
INIT("LINUX")
|
||||
#endif
|
||||
#if defined(sun)
|
||||
|
||||
@@ -151,7 +151,7 @@ void basename(M_NOPAR)
|
||||
*p = save;
|
||||
|
||||
#else
|
||||
#if defined(hpux) || defined(_AIX) || defined(sun) || defined(linux)
|
||||
#if defined(hpux) || defined(_AIX) || defined(sun) || defined(__linux__)
|
||||
#define CONTRIB "/usr/hphelp/bin/"
|
||||
|
||||
/* get our path if we can */
|
||||
@@ -996,7 +996,7 @@ int mb_getqualified ( qualname, unqualname )
|
||||
char *qualname;
|
||||
char *unqualname;
|
||||
{
|
||||
#if defined(hpux) || defined(_AIX) || defined(sun) || defined(linux)
|
||||
#if defined(hpux) || defined(_AIX) || defined(sun) || defined(__linux__)
|
||||
FILE *f;
|
||||
#endif
|
||||
char fn[FNAMELEN];
|
||||
@@ -1020,7 +1020,7 @@ else
|
||||
|
||||
fnp = fn;
|
||||
|
||||
#if defined(hpux) || defined(_AIX) || defined(sun) || defined(linux)
|
||||
#if defined(hpux) || defined(_AIX) || defined(sun) || defined(__linux__)
|
||||
qualname[0] = '\0';
|
||||
gp = qualname + strlen(qualname);
|
||||
roomleft = roomleft - strlen(qualname);
|
||||
@@ -1134,7 +1134,7 @@ do {
|
||||
while (1);
|
||||
*strrchr(qualname, CSEP) = '\0';
|
||||
|
||||
#if defined(hpux) || defined(_AIX) || defined(sun) || defined(linux)
|
||||
#if defined(hpux) || defined(_AIX) || defined(sun) || defined(__linux__)
|
||||
#else
|
||||
strupr ( qualname );
|
||||
#endif
|
||||
@@ -2249,7 +2249,7 @@ while (name = m_cyclent(init, &type, &content, &wheredef))
|
||||
#if defined(MSDOS)
|
||||
m_openchk(&nullfile, "NUL", "w");
|
||||
#else
|
||||
#if defined(hpux) || defined(_AIX) || defined(sun) || defined(linux)
|
||||
#if defined(hpux) || defined(_AIX) || defined(sun) || defined(__linux__)
|
||||
m_openchk(&nullfile, "/dev/null", "w");
|
||||
#else
|
||||
m_openchk(&nullfile, "nullfile", "w");
|
||||
|
||||
Reference in New Issue
Block a user