Modify port-specific definitions to support missing endian information.

Add extra include file for aix to find endian information.
This commit is contained in:
Thomas G. Lockhart 1997-07-11 14:03:01 +00:00
parent a11ad874e4
commit c6df30edb9
7 changed files with 63 additions and 7 deletions

View File

@ -5,3 +5,4 @@
# define HAVE_ANSI_CPP
# define HAS_TEST_AND_SET
typedef unsigned int slock_t;
#include <sys/machine.h> /* ENDIAN definitions for network communication */

View File

@ -1,7 +1,17 @@
#define LINUX_ELF
#define USE_POSIX_SIGNALS
#define USE_POSIX_TIME
#ifndef BYTE_ORDER
# define BYTE_ORDER BIG_ENDIAN
#ifndef BIG_ENDIAN
#define BIG_ENDIAN 4321
#endif
#ifndef LITTLE_ENDIAN
#define LITTLE_ENDIAN 1234
#endif
#ifndef PDP_ENDIAN
#define PDP_ENDIAN 3412
#endif
#ifndef BYTE_ORDER
#define BYTE_ORDER BIG_ENDIAN
#endif

View File

@ -7,8 +7,17 @@
#include <sys/isa_defs.h>
#ifndef BYTE_ORDER
#define BYTE_ORDER LITTLE_ENDIAN
#ifndef BIG_ENDIAN
#define BIG_ENDIAN 4321
#endif
#ifndef LITTLE_ENDIAN
#define LITTLE_ENDIAN 1234
#endif
#ifndef PDP_ENDIAN
#define PDP_ENDIAN 3412
#endif
#ifndef BYTE_ORDER
#define BYTE_ORDER LITTLE_ENDIAN
#endif
#ifndef NAN

View File

@ -5,6 +5,15 @@
# define HAS_TEST_AND_SET
typedef unsigned char slock_t;
#ifndef BIG_ENDIAN
#define BIG_ENDIAN 4321
#endif
#ifndef LITTLE_ENDIAN
#define LITTLE_ENDIAN 1234
#endif
#ifndef PDP_ENDIAN
#define PDP_ENDIAN 3412
#endif
#ifndef BYTE_ORDER
#define BYTE_ORDER BIG_ENDIAN
#endif

View File

@ -1,5 +1,14 @@
#define USE_POSIX_TIME
#ifndef BYTE_ORDER
# define BYTE_ORDER BIG_ENDIAN
#endif
#ifndef BIG_ENDIAN
#define BIG_ENDIAN 4321
#endif
#ifndef LITTLE_ENDIAN
#define LITTLE_ENDIAN 1234
#endif
#ifndef PDP_ENDIAN
#define PDP_ENDIAN 3412
#endif
#ifndef BYTE_ORDER
#define BYTE_ORDER BIG_ENDIAN
#endif

View File

@ -1,6 +1,15 @@
# define USE_POSIX_TIME
# define NEED_STRDUP
#ifndef BIG_ENDIAN
#define BIG_ENDIAN 4321
#endif
#ifndef LITTLE_ENDIAN
#define LITTLE_ENDIAN 1234
#endif
#ifndef PDP_ENDIAN
#define PDP_ENDIAN 3412
#endif
#ifndef BYTE_ORDER
#define BYTE_ORDER LITTLE_ENDIAN
#endif

View File

@ -13,6 +13,15 @@ extern void srandom(int seed);
extern int strcasecmp(char *s1,char *s2);
extern int gethostname(char *name,int namelen);
#ifndef BIG_ENDIAN
#define BIG_ENDIAN 4321
#endif
#ifndef LITTLE_ENDIAN
#define LITTLE_ENDIAN 1234
#endif
#ifndef PDP_ENDIAN
#define PDP_ENDIAN 3412
#endif
#ifndef BYTE_ORDER
#define BYTE_ORDER LITTLE_ENDIAN
#endif