/* Misc system-specific crap */ #ifndef _PORTING_H_ #define _PORTING_H_ #ifdef HAVE_CONFIG_H #include #endif #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include /* makefile will include elf.h for us */ #include "bswap.h" #include "dl-defs.h" #ifdef DMALLOC #include #endif /* For SunOS */ #ifndef PATH_MAX #define PATH_MAX _POSIX_PATH_MAX #endif #ifndef UCLIBC_RUNTIME_PREFIX # define UCLIBC_RUNTIME_PREFIX "/" #endif #define UCLIBC_ENDIAN_LITTLE 1234 #define UCLIBC_ENDIAN_BIG 4321 #if __BYTE_ORDER == __LITTLE_ENDIAN # define UCLIBC_ENDIAN_HOST UCLIBC_ENDIAN_LITTLE #elif __BYTE_ORDER == __BIG_ENDIAN # define UCLIBC_ENDIAN_HOST UCLIBC_ENDIAN_BIG #else # error "Unknown host byte order!" #endif #endif