/* Make sockets of type AF_UNIX use underlying FS rights */ #ifdefined(__sun) && !defined(_XOPEN_SOURCE) # define _XOPEN_SOURCE 500 # include <sys/socket.h> # undef _XOPEN_SOURCE #else # include <sys/socket.h> #endif
#ifdef SYSV # include <sys/utsname.h> #endif
#ifdef LINUX # ifndef __USE_GNU # define __USE_GNU # endif
#ifdef HAIKU # include <shadow.h> # include <pthread.h> # include <sys/file.h> # include <sys/ioctl.h> # include <sys/uio.h> # include <sys/un.h> # include <netinet/tcp.h> # include <dlfcn.h> # include <endian.h> # include <sys/time.h> # define IORESOURCE_TRANSFER_BSD # define IOCHANNEL_TRANSFER_BSD_RENO # define pthread_testcancel() # define NO_PTHREAD_PRIORITY # define NO_PTHREAD_RTL # define PTHREAD_SIGACTION pthread_sigaction
# define SIGIOT SIGABRT # define SOCK_RDM 0 // hack: Haiku defines SOL_SOCKET as -1, but this makes GCC complain about // narrowing conversion # undef SOL_SOCKET # define SOL_SOCKET (sal_uInt32) -1
#endif
#ifdefined(ANDROID) # include <pthread.h> # include <sys/file.h> # include <sys/ioctl.h> # include <sys/uio.h> # include <sys/un.h> # include <netinet/tcp.h> # include <dlfcn.h> # include <endian.h> # include <sys/time.h> # define IORESOURCE_TRANSFER_BSD # define IOCHANNEL_TRANSFER_BSD_RENO # define pthread_testcancel() # define NO_PTHREAD_PRIORITY #endif
#ifdef NETBSD # define NO_PTHREAD_RTL #endif
#ifdef FREEBSD # include <pthread.h> # include <sys/sem.h> # include <dlfcn.h> # include <sys/filio.h> # include <sys/ioctl.h> # include <sys/param.h> # include <sys/time.h> # include <sys/uio.h> # include <sys/exec.h> # include <vm/vm.h> # include <vm/vm_param.h> # include <vm/pmap.h> # include <vm/swap_pager.h> # include <sys/un.h> # include <netinet/tcp.h> # define IORESOURCE_TRANSFER_BSD # include <machine/endian.h> # define NO_PTHREAD_RTL #endif
#ifdef OPENBSD # include <pthread.h> # include <sys/sem.h> # include <dlfcn.h> # include <sys/filio.h> # include <sys/ioctl.h> # include <sys/param.h> # include <sys/time.h> # include <sys/uio.h> # include <sys/exec.h> # include <sys/un.h> # include <netinet/tcp.h> # define IORESOURCE_TRANSFER_BSD # include <machine/endian.h> # define PTR_SIZE_T(s) ((size_t *)&(s)) # define IORESOURCE_TRANSFER_BSD # define IOCHANNEL_TRANSFER_BSD_RENO # define pthread_testcancel() # define NO_PTHREAD_PRIORITY # define NO_PTHREAD_RTL # define PTHREAD_SIGACTION pthread_sigaction #endif
#ifdefined(DRAGONFLY) || defined(NETBSD) # include <pthread.h> # include <sys/sem.h> # include <dlfcn.h> # include <sys/filio.h> # include <sys/ioctl.h> # include <sys/param.h> # include <sys/time.h> # include <sys/uio.h> # include <sys/exec.h> # include <sys/un.h> # include <netinet/tcp.h> # include <machine/endian.h> # define IORESOURCE_TRANSFER_BSD # define IOCHANNEL_TRANSFER_BSD_RENO #endif
#ifdef __sun # include <shadow.h> # include <sys/un.h> # include <stropts.h> # include <pthread.h> # include <netinet/tcp.h> # include <sys/filio.h> # include <dlfcn.h> # include <sys/isa_defs.h> # define IORESOURCE_TRANSFER_SYSV # define IOCHANNEL_TRANSFER_BSD # define LIBPATH "LD_LIBRARY_PATH" #endif
#ifdef MACOSX #define TimeValue CFTimeValue // Do not conflict with TimeValue in sal/inc/osl/time.h #undef TimeValue # include <premac.h> # include <CoreFoundation/CoreFoundation.h> # include <postmac.h> # include <signal.h> # include <dlfcn.h> # include <pthread.h> # include <sys/file.h> # include <sys/ioctl.h> # include <sys/uio.h> # include <sys/un.h> # include <netinet/tcp.h> # include <machine/endian.h> # include <sys/time.h> # include <mach-o/dyld.h> # define IOCHANNEL_TRANSFER_BSD_RENO # define NO_PTHREAD_RTL /* for NSGetArgc/Argv/Environ */ # include <crt_externs.h> int macxp_resolveAlias(char *path, int buflen); #endif
#ifdef IOS # include <dlfcn.h> # include <pthread.h> # include <sys/file.h> # include <sys/ioctl.h> # include <sys/uio.h> # include <sys/un.h> # include <netinet/tcp.h> # include <machine/endian.h> # include <sys/time.h> # define IOCHANNEL_TRANSFER_BSD_RENO # define NO_PTHREAD_RTL #endif
#ifdef EMSCRIPTEN # include <pthread.h> # include <sys/file.h> # include <sys/ioctl.h> # include <sys/uio.h> # include <sys/un.h> # include <netinet/tcp.h> # include <dlfcn.h> # include <endian.h> # include <sys/time.h> # define IORESOURCE_TRANSFER_BSD # define IOCHANNEL_TRANSFER_BSD_RENO # define pthread_testcancel() # define NO_PTHREAD_PRIORITY # define INIT_GROUPS(name, gid) false #endif
/* BEGIN HACK */ /* dummy define and declarations for IPX should be replaced by */ /* original ipx headers when these are available for this platform */
#ifndef SA_FAMILY_DECL # define SA_FAMILY_DECL short sa_family #endif
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.