GNU libmicrohttpd  0.9.5
platform.h
Go to the documentation of this file.
1 /*
2  This file is part of libmicrohttpd
3  (C) 2008 Christian Grothoff (and other contributing authors)
4 
5  This library is free software; you can redistribute it and/or
6  modify it under the terms of the GNU Lesser General Public
7  License as published by the Free Software Foundation; either
8  version 2.1 of the License, or (at your option) any later version.
9 
10  This library is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13  Lesser General Public License for more details.
14 
15  You should have received a copy of the GNU Lesser General Public
16  License along with this library; if not, write to the Free Software
17  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18 */
19 
34 #ifndef MHD_PLATFORM_H
35 #define MHD_PLATFORM_H
36 
37 #include "MHD_config.h"
38 
39 #define _XOPEN_SOURCE_EXTENDED 1
40 #if OS390
41 #define _OPEN_THREADS
42 #define _OPEN_SYS_SOCK_IPV6
43 #define _OPEN_MSGQ_EXT
44 #define _LP64
45 #endif
46 
47 #include <stdio.h>
48 #include <stdlib.h>
49 #include <stdint.h>
50 #include <string.h>
51 #include <unistd.h>
52 #include <stdarg.h>
53 #include <errno.h>
54 #include <fcntl.h>
55 #include <signal.h>
56 #include <stddef.h>
57 #undef HAVE_CONFIG_H
58 #include <pthread.h>
59 #define HAVE_CONFIG_H 1
60 
61 /* different OSes have fd_set in
62  a broad range of header files;
63  we just include most of them (if they
64  are available) */
65 
66 
67 #ifdef OS_VXWORKS
68 #include <sockLib.h>
69 #include <netinet/in.h>
70 #include <stdarg.h>
71 #include <sys/mman.h>
72 #define RESTRICT __restrict__
73 #endif
74 #if HAVE_MEMORY_H
75 #include <memory.h>
76 #endif
77 
78 #if HAVE_SYS_SELECT_H
79 #include <sys/select.h>
80 #endif
81 #if HAVE_SYS_TYPES_H
82 #include <sys/types.h>
83 #endif
84 #if HAVE_SYS_TIME_H
85 #include <sys/time.h>
86 #endif
87 #if HAVE_SYS_STAT_H
88 #include <sys/stat.h>
89 #endif
90 #if HAVE_SYS_MSG_H
91 #include <sys/msg.h>
92 #endif
93 #if HAVE_SYS_MMAN_H
94 #include <sys/mman.h>
95 #endif
96 #if HAVE_NETDB_H
97 #include <netdb.h>
98 #endif
99 #if HAVE_NETINET_IN_H
100 #include <netinet/in.h>
101 #endif
102 #if HAVE_TIME_H
103 #include <time.h>
104 #endif
105 #if HAVE_SYS_SOCKET_H
106 #include <sys/socket.h>
107 #endif
108 #if HAVE_ARPA_INET_H
109 #include <arpa/inet.h>
110 #endif
111 
112 #include <plibc.h>
113 
114 
115 #endif