Use POSIX macros for linux

This commit is contained in:
chase
2018-05-24 16:24:41 -05:00
committed by Jon Trulson
parent 164e695cd0
commit 4f5e7fe5e3
265 changed files with 394 additions and 394 deletions

View File

@@ -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>

View File

@@ -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

View File

@@ -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

View File

@@ -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>

View File

@@ -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>

View File

@@ -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

View File

@@ -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>

View File

@@ -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>

View File

@@ -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

View File

@@ -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);

View File

@@ -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