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 PLATFORM_H
00035 #define 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 #undef HAVE_CONFIG_H
00057 #include <pthread.h>
00058 #define HAVE_CONFIG_H 1
00059 
00060 /* different OSes have fd_set in
00061    a broad range of header files;
00062    we just include most of them (if they
00063    are available) */
00064 
00065 
00066 #ifdef OS_VXWORKS
00067 #include <sockLib.h>
00068 #include <netinet/in.h>
00069 #include <stdarg.h>
00070 #include <sys/mman.h>
00071 #define RESTRICT __restrict__
00072 #endif
00073 
00074 #if HAVE_SYS_SELECT_H
00075 #include <sys/select.h>
00076 #endif
00077 #if HAVE_SYS_TYPES_H
00078 #include <sys/types.h>
00079 #endif
00080 #if HAVE_SYS_TIME_H
00081 #include <sys/time.h>
00082 #endif
00083 #if HAVE_SYS_STAT_H
00084 #include <sys/stat.h>
00085 #endif
00086 #if HAVE_SYS_MSG_H
00087 #include <sys/msg.h>
00088 #endif
00089 #if HAVE_SYS_MMAN_H
00090 #include <sys/mman.h>
00091 #endif
00092 #if HAVE_NETDB_H
00093 #include <netdb.h>
00094 #endif
00095 #if HAVE_NETINET_IN_H
00096 #include <netinet/in.h>
00097 #endif
00098 #if HAVE_TIME_H
00099 #include <time.h>
00100 #endif
00101 #if HAVE_SYS_SOCKET_H
00102 #include <sys/socket.h>
00103 #endif
00104 #if HAVE_ARPA_INET_H
00105 #include <arpa/inet.h>
00106 #endif
00107 
00108 #include "plibc.h"
00109 
00110 
00111 #endif

Generated on Fri Feb 27 18:31:22 2009 for GNU libmicrohttpd by  doxygen 1.5.7.1