GNU libmicrohttpd 0.9.5

platform.h

Go to the documentation of this file.
00001 /*
00002      This file is part of libmicrohttpd
00003      (C) 2008 Christian Grothoff (and other contributing authors)
00004 
00005      This library is free software; you can redistribute it and/or
00006      modify it under the terms of the GNU Lesser General Public
00007      License as published by the Free Software Foundation; either
00008      version 2.1 of the License, or (at your option) any later version.
00009 
00010      This library is distributed in the hope that it will be useful,
00011      but WITHOUT ANY WARRANTY; without even the implied warranty of
00012      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013      Lesser General Public License for more details.
00014 
00015      You should have received a copy of the GNU Lesser General Public
00016      License along with this library; if not, write to the Free Software
00017      Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
00018 */
00019 
00034 #ifndef MHD_PLATFORM_H
00035 #define MHD_PLATFORM_H
00036 
00037 #include "MHD_config.h"
00038 
00039 #define _XOPEN_SOURCE_EXTENDED  1
00040 #if OS390
00041 #define _OPEN_THREADS
00042 #define _OPEN_SYS_SOCK_IPV6
00043 #define _OPEN_MSGQ_EXT
00044 #define _LP64
00045 #endif
00046 
00047 #include <stdio.h>
00048 #include <stdlib.h>
00049 #include <stdint.h>
00050 #include <string.h>
00051 #include <unistd.h>
00052 #include <stdarg.h>
00053 #include <errno.h>
00054 #include <fcntl.h>
00055 #include <signal.h>
00056 #if !defined(MINGW) && !defined(__SYMBIAN32__)
00057 #include <search.h>
00058 #endif
00059 #include <stddef.h>
00060 #undef HAVE_CONFIG_H
00061 #include <pthread.h>
00062 #define HAVE_CONFIG_H 1
00063 
00064 /* different OSes have fd_set in
00065    a broad range of header files;
00066    we just include most of them (if they
00067    are available) */
00068 
00069 
00070 #ifdef OS_VXWORKS
00071 #include <sockLib.h>
00072 #include <netinet/in.h>
00073 #include <stdarg.h>
00074 #include <sys/mman.h>
00075 #define RESTRICT __restrict__
00076 #endif
00077 
00078 #if HAVE_SYS_SELECT_H
00079 #include <sys/select.h>
00080 #endif
00081 #if HAVE_SYS_TYPES_H
00082 #include <sys/types.h>
00083 #endif
00084 #if HAVE_SYS_TIME_H
00085 #include <sys/time.h>
00086 #endif
00087 #if HAVE_SYS_STAT_H
00088 #include <sys/stat.h>
00089 #endif
00090 #if HAVE_SYS_MSG_H
00091 #include <sys/msg.h>
00092 #endif
00093 #if HAVE_SYS_MMAN_H
00094 #include <sys/mman.h>
00095 #endif
00096 #if HAVE_NETDB_H
00097 #include <netdb.h>
00098 #endif
00099 #if HAVE_NETINET_IN_H
00100 #include <netinet/in.h>
00101 #endif
00102 #if HAVE_TIME_H
00103 #include <time.h>
00104 #endif
00105 #if HAVE_SYS_SOCKET_H
00106 #include <sys/socket.h>
00107 #endif
00108 #if HAVE_ARPA_INET_H
00109 #include <arpa/inet.h>
00110 #endif
00111 
00112 #include <plibc.h>
00113 
00114 
00115 #endif