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.smolik@wo.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.
42 #include "orte/ew_types.h"
43 #elif defined(HAVE_CONFIG_H) || defined(OMK_FOR_USER) || defined(OMK_FOR_KERNEL)
44 #include "orte/orte_config.h"
47 #error "You don't have file 'orte/orte_config.h'."
48 #error "Please make sure that this file exists!."
52 #ifdef HAVE_ARPA_INET_H
53 #include <arpa/inet.h>
70 #ifdef HAVE_SYS_IOCTL_H
71 #include <sys/ioctl.h>
73 #ifdef HAVE_SYS_TIME_H
82 #ifdef HAVE_SYS_TYPES_H
83 #include <sys/types.h>
85 #ifdef HAVE_SYS_SOCKIO_H
86 #include <sys/sockio.h>
91 #ifdef HAVE_BYTESWAP_H
106 #ifdef HAVE_SYS_SOCKET_H
107 #include <sys/socket.h>
109 #ifdef HAVE_NETINET_IN_H
110 #include <netinet/in.h>
119 #if defined HAVE_WINSOCK2_H && !HAVE_SYS_SOCKET_H
120 #include <winsock2.h>
122 #if defined HAVE_WS2TCPIP_H && !HAVE_SYS_SOCKET_H
123 #include <ws2tcpip.h>
125 #ifdef HAVE_WINDOWS_H
128 #ifdef HAVE_W32API_WINDOWS_H
129 #include <w32api/windows.h>
135 #ifdef HAVE_ASM_BYTEORDER_H
136 #include <asm/byteorder.h>
138 #ifdef HAVE_LINUX_CTYPE_H
139 #include <linux/ctype.h>
141 #ifdef HAVE_LINUX_STRING_H
142 #include <linux/string.h>
144 #ifdef HAVE_LINUX_MODULE_H
145 #include <linux/module.h>
147 #ifdef HAVE_LINUX_IF_H
148 #include <linux/if.h>
150 #ifdef HAVE_LINUX_SOCKET_H
151 #include <linux/socket.h>
153 #ifdef HAVE_LINUX_TIME_H
154 #include <linux/time.h>
156 #ifdef HAVE_LINUX_TYPES_H
157 #include <linux/types.h>
159 #ifdef HAVE_LINUX_IN_H
160 #include <linux/in.h>
166 #ifdef HAVE_RTL_MALLOC_H
167 #include <rtl_malloc.h>
189 #ifdef CONFIG_ORTE_UNIX
191 #elif CONFIG_ORTE_CYGWIN
193 #elif CONFIG_ORTE_MINGW
195 #ifndef HAVE_PTHREAD_H
196 #include <win32/pthread.h>
198 #ifndef __GETOPT_H__ //mingw
199 #include <win32/getopt.h>
201 #ifndef HAVE_TIMEVAL_H
202 #include <win32/timeval.h>
204 #include <orte/ew_types.h>
205 #define ioctl ioctlsocket
206 #elif defined CONFIG_ORTE_RTL
207 #include <rtl/rwlock.h>
208 #ifdef CONFIG_ORTE_RTL_ONETD
210 #include <rtl/compat_onetd.h>
211 #elif CONFIG_ORTE_RTL_WIP
213 #include <rtl/compat_rtlwip.h>
215 #error "no UDP stack for RTLinux"
217 #elif defined CONFIG_ORTE_RTAI
219 #include <rtai/compat.h>
220 #elif defined _MSC_VER
223 #define SOCK_WIN_PHARLAP
225 #define IN_CLASSD(i) (((long)(i) & 0xf0000000) == 0xe0000000)
226 #define IN_MULTICAST(i) IN_CLASSD(i)
227 #include <embtcpip.h>
229 #include <winsock2.h>
230 #include <ws2tcpip.h>
233 #define inline _inline
241 #include <win32/pharlap/pthread.h>
243 #include <win32/pthread.h>
245 #include <win32/timeval.h>
246 #include <win32/getopt.h>
247 #define ioctl ioctlsocket
248 #define ORTE_PACKAGE_STRING "orte 0.3.3"
249 #define CONFIG_ORTE_WIN
256 #endif /* _ORTE_ALL_H */