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

@@ -86,7 +86,6 @@
# define __SVR4_I386_ABI_L1__
#endif
#include <limits.h> /* pickup WORD_BIT, LONG_BIT */
#if defined(__linux__) || defined(CSRG_BASED) || defined(sun)
# undef __SVR4_I386_ABI_L1__
# ifndef WORD_BIT
# define WORD_BIT 32
@@ -94,7 +93,6 @@
# ifndef LONG_BIT
# define LONG_BIT 32
# endif
#endif
#define db_VERSION "3.dt" /* was "3.10" */
#define dbd_VERSION "V3.dt\032" /* was "V3.00\032" */

View File

@@ -52,9 +52,7 @@ extern "C" {
** System V R4 based systems define the stuff we need in
** sys/types.h. Include that and then we are done.
*/
#if defined(__linux__) || defined(SunOS) || defined(CSRG_BASED)
# include <sys/types.h>
#endif
#include <sys/types.h>
#if defined(CSRG_BASED) || defined(__linux__)
# include <sys/socket.h>