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.
39 #include "orte/ew_types.h"
40 #elif defined(HAVE_CONFIG_H) || defined(OMK_FOR_USER) || defined(OMK_FOR_KERNEL)
41 #include "orte/orte_config.h"
44 #error "You don't have file 'orte/orte_config.h'."
45 #error "Please make sure that this file exists!."
49 #ifdef HAVE_ARPA_INET_H
50 #include <arpa/inet.h>
67 #ifdef HAVE_SYS_IOCTL_H
68 #include <sys/ioctl.h>
70 #ifdef HAVE_SYS_TIME_H
79 #ifdef HAVE_SYS_TYPES_H
80 #include <sys/types.h>
82 #ifdef HAVE_SYS_SOCKIO_H
83 #include <sys/sockio.h>
88 #ifdef HAVE_BYTESWAP_H
103 #ifdef HAVE_SYS_SOCKET_H
104 #include <sys/socket.h>
106 #ifdef HAVE_NETINET_IN_H
107 #include <netinet/in.h>
116 #if defined HAVE_WINSOCK2_H && !HAVE_SYS_SOCKET_H
117 #include <winsock2.h>
119 #if defined HAVE_WS2TCPIP_H && !HAVE_SYS_SOCKET_H
120 #include <ws2tcpip.h>
122 #ifdef HAVE_WINDOWS_H
125 #ifdef HAVE_W32API_WINDOWS_H
126 #include <w32api/windows.h>
132 #ifdef HAVE_ASM_BYTEORDER_H
133 #include <asm/byteorder.h>
135 #ifdef HAVE_LINUX_CTYPE_H
136 #include <linux/ctype.h>
138 #ifdef HAVE_LINUX_STRING_H
139 #include <linux/string.h>
141 #ifdef HAVE_LINUX_MODULE_H
142 #include <linux/module.h>
144 #ifdef HAVE_LINUX_IF_H
145 #include <linux/if.h>
147 #ifdef HAVE_LINUX_SOCKET_H
148 #include <linux/socket.h>
150 #ifdef HAVE_LINUX_TIME_H
151 #include <linux/time.h>
153 #ifdef HAVE_LINUX_TYPES_H
154 #include <linux/types.h>
156 #ifdef HAVE_LINUX_IN_H
157 #include <linux/in.h>
163 #ifdef HAVE_RTL_MALLOC_H
164 #include <rtl_malloc.h>
186 #ifdef CONFIG_ORTE_UNIX
188 #elif CONFIG_ORTE_CYGWIN
190 #elif CONFIG_ORTE_MINGW
192 #ifndef HAVE_PTHREAD_H
193 #include <win32/pthread.h>
195 #ifndef __GETOPT_H__ //mingw
196 #include <win32/getopt.h>
198 #ifndef HAVE_TIMEVAL_H
199 #include <win32/timeval.h>
201 #include <orte/ew_types.h>
202 #define ioctl ioctlsocket
203 #elif defined CONFIG_ORTE_RTL
204 #include <rtl/rwlock.h>
205 #ifdef CONFIG_ORTE_RTL_ONETD
207 #include <rtl/compat_onetd.h>
208 #elif CONFIG_ORTE_RTL_WIP
210 #include <rtl/compat_rtlwip.h>
212 #error "no UDP stack for RTLinux"
214 #elif defined CONFIG_ORTE_RTAI
216 #include <rtai/compat.h>
217 #elif defined _MSC_VER
220 #define SOCK_WIN_PHARLAP
222 #define IN_CLASSD(i) (((long)(i) & 0xf0000000) == 0xe0000000)
223 #define IN_MULTICAST(i) IN_CLASSD(i)
224 #include <embtcpip.h>
226 #include <winsock2.h>
227 #include <ws2tcpip.h>
230 #define inline _inline
238 #include <win32/pharlap/pthread.h>
240 #include <win32/pthread.h>
242 #include <win32/timeval.h>
243 #include <win32/getopt.h>
244 #define ioctl ioctlsocket
245 #define ORTE_PACKAGE_STRING "orte 0.3.3"
246 #define CONFIG_ORTE_WIN
253 #endif /* _ORTE_ALL_H */