Use POSIX macros for linux
This commit is contained in:
@@ -43,7 +43,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>
|
||||
#include <fcntl.h>
|
||||
|
||||
@@ -26,13 +26,13 @@
|
||||
|
||||
#include <sys/stat.h>
|
||||
#include <sys/wait.h>
|
||||
#if defined(linux)
|
||||
#if defined(__linux__)
|
||||
# include <sys/fcntl.h>
|
||||
#endif
|
||||
|
||||
#include <errno.h>
|
||||
|
||||
#if defined(linux)
|
||||
#if defined(__linux__)
|
||||
#include <getopt.h>
|
||||
#endif
|
||||
|
||||
|
||||
@@ -55,7 +55,7 @@ void main(argc, argv)
|
||||
sizeof(literal) + M_LITLEN - 2)] ;
|
||||
#endif
|
||||
|
||||
#if defined(linux)
|
||||
#if defined(__linux__)
|
||||
m_outfile = stdout;
|
||||
m_errfile = stderr;
|
||||
#endif
|
||||
|
||||
@@ -437,7 +437,7 @@ M_PAREXTERN int m_argc ;
|
||||
M_PAREXTERN char **m_argv ;
|
||||
|
||||
/* PARSER output file */
|
||||
#if defined(linux) || defined(CSRG_BASED)
|
||||
#if defined(__linux__) || defined(CSRG_BASED)
|
||||
M_PAREXTERN FILE *m_outfile;
|
||||
M_PAREXTERN FILE *m_errfile;
|
||||
#else
|
||||
|
||||
Reference in New Issue
Block a user