Modify port-specific definitions to support missing endian information.
Add extra include file for aix to find endian information.
This commit is contained in:
parent
a11ad874e4
commit
c6df30edb9
@ -5,3 +5,4 @@
|
|||||||
# define HAVE_ANSI_CPP
|
# define HAVE_ANSI_CPP
|
||||||
# define HAS_TEST_AND_SET
|
# define HAS_TEST_AND_SET
|
||||||
typedef unsigned int slock_t;
|
typedef unsigned int slock_t;
|
||||||
|
#include <sys/machine.h> /* ENDIAN definitions for network communication */
|
||||||
|
@ -1,7 +1,17 @@
|
|||||||
#define LINUX_ELF
|
#define LINUX_ELF
|
||||||
#define USE_POSIX_SIGNALS
|
#define USE_POSIX_SIGNALS
|
||||||
#define USE_POSIX_TIME
|
#define USE_POSIX_TIME
|
||||||
|
|
||||||
|
#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
|
#ifndef BYTE_ORDER
|
||||||
# define BYTE_ORDER BIG_ENDIAN
|
#define BYTE_ORDER BIG_ENDIAN
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -7,6 +7,15 @@
|
|||||||
|
|
||||||
#include <sys/isa_defs.h>
|
#include <sys/isa_defs.h>
|
||||||
|
|
||||||
|
#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
|
#ifndef BYTE_ORDER
|
||||||
#define BYTE_ORDER LITTLE_ENDIAN
|
#define BYTE_ORDER LITTLE_ENDIAN
|
||||||
#endif
|
#endif
|
||||||
|
@ -5,6 +5,15 @@
|
|||||||
# define HAS_TEST_AND_SET
|
# define HAS_TEST_AND_SET
|
||||||
typedef unsigned char slock_t;
|
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
|
#ifndef BYTE_ORDER
|
||||||
#define BYTE_ORDER BIG_ENDIAN
|
#define BYTE_ORDER BIG_ENDIAN
|
||||||
#endif
|
#endif
|
||||||
|
@ -1,5 +1,14 @@
|
|||||||
#define USE_POSIX_TIME
|
#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
|
||||||
|
@ -1,6 +1,15 @@
|
|||||||
# define USE_POSIX_TIME
|
# define USE_POSIX_TIME
|
||||||
# define NEED_STRDUP
|
# 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
|
#ifndef BYTE_ORDER
|
||||||
#define BYTE_ORDER LITTLE_ENDIAN
|
#define BYTE_ORDER LITTLE_ENDIAN
|
||||||
#endif
|
#endif
|
||||||
|
@ -13,6 +13,15 @@ extern void srandom(int seed);
|
|||||||
extern int strcasecmp(char *s1,char *s2);
|
extern int strcasecmp(char *s1,char *s2);
|
||||||
extern int gethostname(char *name,int namelen);
|
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
|
#ifndef BYTE_ORDER
|
||||||
#define BYTE_ORDER LITTLE_ENDIAN
|
#define BYTE_ORDER LITTLE_ENDIAN
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user