1 /* Misc system-specific crap */
22 #include <sys/param.h>
24 #include <sys/types.h>
26 #ifdef __LDSO_LDD_SUPPORT__
27 # include <sys/wait.h>
30 #if defined(_WIN32) || defined(_WINNT)
31 # include "mmap-windows.c"
33 # include <sys/mman.h>
37 /* makefile will include elf.h for us */
48 #define PATH_MAX _POSIX_PATH_MAX
51 #ifndef UCLIBC_RUNTIME_PREFIX
52 # define UCLIBC_RUNTIME_PREFIX "/"
55 #undef UCLIBC_ENDIAN_HOST
56 #define UCLIBC_ENDIAN_LITTLE 1234
57 #define UCLIBC_ENDIAN_BIG 4321
58 #if defined(BYTE_ORDER)
59 # if BYTE_ORDER == LITTLE_ENDIAN
60 # define UCLIBC_ENDIAN_HOST UCLIBC_ENDIAN_LITTLE
61 # elif BYTE_ORDER == BIG_ENDIAN
62 # define UCLIBC_ENDIAN_HOST UCLIBC_ENDIAN_BIG
64 #elif defined(__BYTE_ORDER)
65 # if __BYTE_ORDER == __LITTLE_ENDIAN
66 # define UCLIBC_ENDIAN_HOST UCLIBC_ENDIAN_LITTLE
67 # elif __BYTE_ORDER == __BIG_ENDIAN
68 # define UCLIBC_ENDIAN_HOST UCLIBC_ENDIAN_BIG
71 #if !defined(UCLIBC_ENDIAN_HOST)
72 # error "Unknown host byte order!"