2 * $Id: orte_headers.h,v 0.0.0.1 2003/08/21
4 * -------------------------------------------------------------------
6 * Open Real-Time Ethernet
8 * Copyright (C) 2001-2006
9 * Department of Control Engineering FEE CTU Prague, Czech Republic
10 * http://dce.felk.cvut.cz
11 * http://www.ocera.org
13 * Author: Petr Smolik petr@smoliku.cz
15 * Project Responsible: Zdenek Hanzalek
16 * --------------------------------------------------------------------
18 * This program is free software; you can redistribute it and/or modify
19 * it under the terms of the GNU General Public License as published by
20 * the Free Software Foundation; either version 2 of the License, or
21 * (at your option) any later version.
23 * This program is distributed in the hope that it will be useful,
24 * but WITHOUT ANY WARRANTY; without even the implied warranty of
25 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
26 * GNU General Public License for more details.
38 #include "orte/ew_types.h"
39 #elif defined(HAVE_CONFIG_H) || defined(OMK_FOR_USER) || defined(OMK_FOR_KERNEL)
40 #include "orte/orte_config.h"
41 #elif defined(__ANDROID__)
42 #include "orte/orte_config_android.h"
45 #error "You don't have file 'orte/orte_config.h'."
46 #error "Please make sure that this file exists!."
50 #ifdef HAVE_ARPA_INET_H
51 #include <arpa/inet.h>
68 #ifdef HAVE_SYS_IOCTL_H
69 #include <sys/ioctl.h>
71 #ifdef HAVE_SYS_TIME_H
80 #ifdef HAVE_SYS_TYPES_H
81 #include <sys/types.h>
83 #ifdef HAVE_SYS_SOCKIO_H
84 #include <sys/sockio.h>
89 #ifdef HAVE_BYTESWAP_H
104 #ifdef HAVE_SYS_SOCKET_H
105 #include <sys/socket.h>
107 #ifdef HAVE_NETINET_IN_H
108 #include <netinet/in.h>
117 #if defined HAVE_WINSOCK2_H && !HAVE_SYS_SOCKET_H
118 #include <winsock2.h>
120 #if defined HAVE_WS2TCPIP_H && !HAVE_SYS_SOCKET_H
121 #include <ws2tcpip.h>
123 #ifdef HAVE_WINDOWS_H
126 #ifdef HAVE_W32API_WINDOWS_H
127 #include <w32api/windows.h>
133 #ifdef HAVE_ASM_BYTEORDER_H
134 #include <asm/byteorder.h>
136 #ifdef HAVE_LINUX_CTYPE_H
137 #include <linux/ctype.h>
139 #ifdef HAVE_LINUX_STRING_H
140 #include <linux/string.h>
142 #ifdef HAVE_LINUX_MODULE_H
143 #include <linux/module.h>
145 #ifdef HAVE_LINUX_IF_H
146 #include <linux/if.h>
148 #ifdef HAVE_LINUX_SOCKET_H
149 #include <linux/socket.h>
151 #ifdef HAVE_LINUX_TIME_H
152 #include <linux/time.h>
154 #ifdef HAVE_LINUX_TYPES_H
155 #include <linux/types.h>
157 #ifdef HAVE_LINUX_IN_H
158 #include <linux/in.h>
164 #ifdef HAVE_RTL_MALLOC_H
165 #include <rtl_malloc.h>
187 #ifdef CONFIG_ORTE_UNIX
189 #elif CONFIG_ORTE_CYGWIN
191 #elif CONFIG_ORTE_MINGW
193 #ifndef HAVE_PTHREAD_H
194 #include <win32/pthread.h>
196 #ifndef __GETOPT_H__ //mingw
197 #include <win32/getopt.h>
199 #ifndef HAVE_TIMEVAL_H
200 #include <win32/timeval.h>
202 #include <orte/ew_types.h>
203 #define ioctl ioctlsocket
204 #elif defined CONFIG_ORTE_RTL
205 #include <rtl/rwlock.h>
206 #ifdef CONFIG_ORTE_RTL_ONETD
208 #include <rtl/compat_onetd.h>
209 #elif CONFIG_ORTE_RTL_WIP
211 #include <rtl/compat_rtlwip.h>
213 #error "no UDP stack for RTLinux"
215 #elif defined CONFIG_ORTE_RTAI
217 #include <rtai/compat.h>
218 #elif defined _MSC_VER
221 #define SOCK_WIN_PHARLAP
223 #define IN_CLASSD(i) (((long)(i) & 0xf0000000) == 0xe0000000)
224 #define IN_MULTICAST(i) IN_CLASSD(i)
225 #include <embtcpip.h>
227 #include <winsock2.h>
228 #include <ws2tcpip.h>
231 #define inline _inline
239 #include <win32/pharlap/pthread.h>
241 #include <win32/pthread.h>
243 #include <win32/timeval.h>
244 #include <win32/getopt.h>
245 #define ioctl ioctlsocket
246 #define ORTE_PACKAGE_STRING "orte 0.3.3"
247 #define CONFIG_ORTE_WIN
254 #endif /* _ORTE_ALL_H */