2 * $Id: orte_headers.h,v 0.0.0.1 2003/08/21
4 * AUTHOR: Petr Smolik petr.smolik@wo.cz
6 * ORTE - OCERA Real-Time Ethernet http://www.ocera.org/
7 * --------------------------------------------------------------------
9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation; either version 2 of the License, or
12 * (at your option) any later version.
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
29 #include "orte/ew_types.h"
30 #elif defined(HAVE_CONFIG_H) || defined(OMK_FOR_USER) || defined(OMK_FOR_KERNEL)
31 #include "orte/orte_config.h"
34 #error "You don't have file 'orte/orte_config.h'."
35 #error "Please make sure that this file exists!."
39 #ifdef HAVE_ARPA_INET_H
40 #include <arpa/inet.h>
57 #ifdef HAVE_SYS_IOCTL_H
58 #include <sys/ioctl.h>
60 #ifdef HAVE_SYS_TIME_H
69 #ifdef HAVE_SYS_TYPES_H
70 #include <sys/types.h>
72 #ifdef HAVE_SYS_SOCKIO_H
73 #include <sys/sockio.h>
78 #ifdef HAVE_BYTESWAP_H
93 #ifdef HAVE_SYS_SOCKET_H
94 #include <sys/socket.h>
96 #ifdef HAVE_NETINET_IN_H
97 #include <netinet/in.h>
106 #if defined HAVE_WINSOCK2_H && !HAVE_SYS_SOCKET_H
107 #include <winsock2.h>
109 #if defined HAVE_WS2TCPIP_H && !HAVE_SYS_SOCKET_H
110 #include <ws2tcpip.h>
112 #ifdef HAVE_WINDOWS_H
115 #ifdef HAVE_W32API_WINDOWS_H
116 #include <w32api/windows.h>
122 #ifdef HAVE_ASM_BYTEORDER_H
123 #include <asm/byteorder.h>
125 #ifdef HAVE_LINUX_CTYPE_H
126 #include <linux/ctype.h>
128 #ifdef HAVE_LINUX_STRING_H
129 #include <linux/string.h>
131 #ifdef HAVE_LINUX_MODULE_H
132 #include <linux/module.h>
134 #ifdef HAVE_LINUX_IF_H
135 #include <linux/if.h>
137 #ifdef HAVE_LINUX_SOCKET_H
138 #include <linux/socket.h>
140 #ifdef HAVE_LINUX_TIME_H
141 #include <linux/time.h>
143 #ifdef HAVE_LINUX_TYPES_H
144 #include <linux/types.h>
146 #ifdef HAVE_LINUX_IN_H
147 #include <linux/in.h>
153 #ifdef HAVE_RTL_MALLOC_H
154 #include <rtl_malloc.h>
176 #ifdef CONFIG_ORTE_UNIX
178 #elif CONFIG_ORTE_CYGWIN
180 #elif CONFIG_ORTE_MINGW
182 #ifndef HAVE_PTHREAD_H
183 #include <win32/pthread.h>
185 #ifndef __GETOPT_H__ //mingw
186 #include <win32/getopt.h>
188 #include <win32/timeval.h>
189 #include <orte/ew_types.h>
190 #define ioctl ioctlsocket
191 #elif defined CONFIG_ORTE_RTL
192 #include <rtl/rwlock.h>
193 #ifdef CONFIG_ORTE_RTL_ONETD
195 #include <rtl/compat_onetd.h>
196 #elif CONFIG_ORTE_RTL_WIP
198 #include <rtl/compat_rtlwip.h>
200 #error "no UDP stack for RTLinux"
202 #elif defined CONFIG_ORTE_RTAI
204 #include <rtai/compat.h>
205 #elif defined _MSC_VER
208 #define SOCK_WIN_PHARLAP
210 #define IN_CLASSD(i) (((long)(i) & 0xf0000000) == 0xe0000000)
211 #define IN_MULTICAST(i) IN_CLASSD(i)
212 #include <embtcpip.h>
214 #include <winsock2.h>
215 #include <ws2tcpip.h>
218 #define inline _inline
226 #include <win32/pharlap/pthread.h>
228 #include <win32/pthread.h>
230 #include <win32/timeval.h>
231 #include <win32/getopt.h>
232 #define ioctl ioctlsocket
233 #define ORTE_PACKAGE_STRING "orte 0.3.0"
234 #define CONFIG_ORTE_WIN
241 #endif /* _ORTE_ALL_H */