Use POSIX macros for linux
This commit is contained in:
@@ -34,7 +34,7 @@
|
||||
#include <fcntl.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#if defined(linux) || defined(CSRG_BASED) || defined(sun)
|
||||
#if defined(__linux__) || defined(CSRG_BASED) || defined(sun)
|
||||
#include <strstream>
|
||||
#else
|
||||
#include <strstream.h>
|
||||
|
||||
@@ -41,7 +41,7 @@
|
||||
*** Add include files, types, macros, externs, and user functions here.
|
||||
***/
|
||||
|
||||
#if defined(linux) || defined(CSRG_BASED) || defined(sun)
|
||||
#if defined(__linux__) || defined(CSRG_BASED) || defined(sun)
|
||||
#include <fstream>
|
||||
#include <strstream>
|
||||
#else
|
||||
|
||||
@@ -39,7 +39,7 @@
|
||||
#include <sys/wait.h>
|
||||
#include <Xm/TextF.h>
|
||||
|
||||
#if defined(linux) || defined(CSRG_BASED) || defined(sun)
|
||||
#if defined(__linux__) || defined(CSRG_BASED) || defined(sun)
|
||||
#include <fstream>
|
||||
#include <strstream>
|
||||
#else
|
||||
|
||||
@@ -41,7 +41,7 @@
|
||||
*** Add include files, types, macros, externs, and user functions here.
|
||||
***/
|
||||
|
||||
#if defined(linux) || defined(CSRG_BASED) || defined(sun)
|
||||
#if defined(__linux__) || defined(CSRG_BASED) || defined(sun)
|
||||
#include <strstream>
|
||||
#else
|
||||
#include <strstream.h>
|
||||
|
||||
@@ -41,7 +41,7 @@
|
||||
*** Add include files, types, macros, externs, and user functions here.
|
||||
***/
|
||||
|
||||
#if defined(linux) || defined(CSRG_BASED) || defined(sun)
|
||||
#if defined(__linux__) || defined(CSRG_BASED) || defined(sun)
|
||||
#include <strstream>
|
||||
#else
|
||||
#include <strstream.h>
|
||||
|
||||
@@ -42,7 +42,7 @@
|
||||
|
||||
#include <Xm/TextF.h>
|
||||
|
||||
#if defined(linux) || defined(CSRG_BASED) || defined(sun)
|
||||
#if defined(__linux__) || defined(CSRG_BASED) || defined(sun)
|
||||
#include <fstream>
|
||||
#include <strstream>
|
||||
#else
|
||||
|
||||
@@ -42,7 +42,7 @@
|
||||
|
||||
#include <Xm/TextF.h>
|
||||
|
||||
#if defined(linux) || defined(CSRG_BASED) || defined(sun)
|
||||
#if defined(__linux__) || defined(CSRG_BASED) || defined(sun)
|
||||
#include <fstream>
|
||||
#else
|
||||
#include <fstream.h>
|
||||
|
||||
@@ -43,7 +43,7 @@
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
#if defined(linux) || defined(CSRG_BASED) || defined(sun)
|
||||
#if defined(__linux__) || defined(CSRG_BASED) || defined(sun)
|
||||
#include <strstream>
|
||||
#else
|
||||
#include <strstream.h>
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
#ifndef TT_CXX_H
|
||||
#define TT_CXX_H
|
||||
|
||||
#if defined(linux) || defined(CSRG_BASED) || defined(sun)
|
||||
#if defined(__linux__) || defined(CSRG_BASED) || defined(sun)
|
||||
#include <iostream>
|
||||
using namespace std;
|
||||
#else
|
||||
|
||||
@@ -63,7 +63,7 @@
|
||||
#include <sys/stat.h>
|
||||
#include <time.h>
|
||||
|
||||
#if defined(linux) || defined(CSRG_BASED) || defined(sun)
|
||||
#if defined(__linux__) || defined(CSRG_BASED) || defined(sun)
|
||||
#include <iostream>
|
||||
#include <strstream>
|
||||
#include <fstream>
|
||||
@@ -196,7 +196,7 @@ signalHandler(
|
||||
}
|
||||
}
|
||||
|
||||
#if defined(SVR4) || defined(aix) || defined(hpux) || defined(linux) || defined(CSRG_BASED)
|
||||
#if defined(SVR4) || defined(aix) || defined(hpux) || defined(__linux__) || defined(CSRG_BASED)
|
||||
#if !defined(SIG_PF)
|
||||
typedef void (*sig_pf_t)(int);
|
||||
#define SIG_PF sig_pf_t
|
||||
@@ -208,7 +208,7 @@ _tt_sigset(
|
||||
int sig,
|
||||
SIG_PF handler )
|
||||
{
|
||||
#if defined(hpux) || defined(linux) || defined(CSRG_BASED)
|
||||
#if defined(hpux) || defined(__linux__) || defined(CSRG_BASED)
|
||||
struct sigaction act;
|
||||
act.sa_handler = handler;
|
||||
sigemptyset(&act.sa_mask);
|
||||
|
||||
@@ -37,7 +37,7 @@
|
||||
|
||||
#include <unistd.h>
|
||||
|
||||
#if defined(linux) || defined(CSRG_BASED) || defined(sun)
|
||||
#if defined(__linux__) || defined(CSRG_BASED) || defined(sun)
|
||||
#include <fstream>
|
||||
#include <strstream>
|
||||
#else
|
||||
|
||||
Reference in New Issue
Block a user