Rudiments: /home/dmuse/temp/rudiments/include/rudiments/private/filedescriptorincludes.h Source File

Rudiments

filedescriptorincludes.h
1 // Copyright (c) 1999-2018 David Muse
2 // See the COPYING file for more information.
3
4 #include <rudiments/private/dll.h>
5 #include <rudiments/private/inttypes.h>
6
7 #include <rudiments/input.h>
8 #include <rudiments/output.h>
9 #include <rudiments/security.h>
10 #include <rudiments/resultcodes.h>
11
12 #ifdef RUDIMENTS_HAVE_SYS_TYPES_H
13 #include <sys/types.h>
14 #endif
15
16 #ifdef RUDIMENTS_HAVE_SYS_SOCKET_H
17 // IRIX appears to need this but OpenBSD can't
18 // find select() if it's still defined later
19 #ifndef _XOPEN_SOURCE
20 #define _XOPEN_SOURCE
21 #define UN_XOPEN_SOURCE
22 #endif
23 #ifndef RUDIMENTS_SYS_SOCKET_H
24 #define RUDIMENTS_SYS_SOCKET_H
25 #include <sys/socket.h>
26 #endif
27 #ifdef UN_XOPEN_SOURCE
28 #undef _XOPEN_SOURCE
29 #endif
30 #endif
31
32 #ifdef RUDIMENTS_HAVE_STDARG_H
33 #include <stdarg.h>
34 #endif
35
36 class filedescriptorprivate;