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>
36 #ifdef BUILDING_LINKAGE
38 /* makefile will include elf.h for us */
50 #define PATH_MAX _POSIX_PATH_MAX
53 #ifndef UCLIBC_RUNTIME_PREFIX
54 # define UCLIBC_RUNTIME_PREFIX "/"
57 #undef UCLIBC_ENDIAN_HOST
58 #define UCLIBC_ENDIAN_LITTLE 1234
59 #define UCLIBC_ENDIAN_BIG 4321
60 #if defined(BYTE_ORDER)
61 # if BYTE_ORDER == LITTLE_ENDIAN
62 # define UCLIBC_ENDIAN_HOST UCLIBC_ENDIAN_LITTLE
63 # elif BYTE_ORDER == BIG_ENDIAN
64 # define UCLIBC_ENDIAN_HOST UCLIBC_ENDIAN_BIG
66 #elif defined(__BYTE_ORDER)
67 # if __BYTE_ORDER == __LITTLE_ENDIAN
68 # define UCLIBC_ENDIAN_HOST UCLIBC_ENDIAN_LITTLE
69 # elif __BYTE_ORDER == __BIG_ENDIAN
70 # define UCLIBC_ENDIAN_HOST UCLIBC_ENDIAN_BIG
73 #if !defined(UCLIBC_ENDIAN_HOST)
74 # error "Unknown host byte order!"
77 #if defined __GNUC__ || defined __ICC
78 # define attribute_noreturn __attribute__ ((__noreturn__))
80 # define attribute_noreturn