Generify source code

Previously we would fail in some parts of the code if we did not have a
premade configuration, now we use any code that was marked as Linux, BSD and
Solaris as our basis in order to support building unknown Unix systems.
This commit is contained in:
Chase
2022-08-03 23:15:45 -05:00
committed by Jon Trulson
parent 06863e826e
commit 45cee195bd
70 changed files with 46 additions and 1250 deletions

View File

@@ -29,12 +29,8 @@
#ifndef TT_CXX_H
#define TT_CXX_H
#if defined(__linux__) || defined(CSRG_BASED) || defined(sun)
#include <iostream>
using namespace std;
#else
#include <iostream.h>
#endif
#include <Tt/tt_c.h>

View File

@@ -190,12 +190,10 @@ signalHandler(
}
}
#if defined(SVR4) || defined(aix) || defined(__linux__) || defined(CSRG_BASED)
#if !defined(SIG_PF)
typedef void (*sig_pf_t)(int);
#define SIG_PF sig_pf_t
#endif
#endif
int
_tt_sigset(