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.
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"
43 #error "You don't have file 'orte/orte_config.h'."
44 #error "Please make sure that this file exists!."
48 #ifdef HAVE_ARPA_INET_H
49 #include <arpa/inet.h>
66 #ifdef HAVE_SYS_IOCTL_H
67 #include <sys/ioctl.h>
69 #ifdef HAVE_SYS_TIME_H
78 #ifdef HAVE_SYS_TYPES_H
79 #include <sys/types.h>
81 #ifdef HAVE_SYS_SOCKIO_H
82 #include <sys/sockio.h>
87 #ifdef HAVE_BYTESWAP_H
102 #ifdef HAVE_SYS_SOCKET_H
103 #include <sys/socket.h>
105 #ifdef HAVE_NETINET_IN_H
106 #include <netinet/in.h>
115 #if defined HAVE_WINSOCK2_H && !HAVE_SYS_SOCKET_H
116 #include <winsock2.h>
118 #if defined HAVE_WS2TCPIP_H && !HAVE_SYS_SOCKET_H
119 #include <ws2tcpip.h>
121 #ifdef HAVE_WINDOWS_H
124 #ifdef HAVE_W32API_WINDOWS_H
125 #include <w32api/windows.h>
131 #ifdef HAVE_ASM_BYTEORDER_H
132 #include <asm/byteorder.h>
134 #ifdef HAVE_LINUX_CTYPE_H
135 #include <linux/ctype.h>
137 #ifdef HAVE_LINUX_STRING_H
138 #include <linux/string.h>
140 #ifdef HAVE_LINUX_MODULE_H
141 #include <linux/module.h>
143 #ifdef HAVE_LINUX_IF_H
144 #include <linux/if.h>
146 #ifdef HAVE_LINUX_SOCKET_H
147 #include <linux/socket.h>
149 #ifdef HAVE_LINUX_TIME_H
150 #include <linux/time.h>
152 #ifdef HAVE_LINUX_TYPES_H
153 #include <linux/types.h>
155 #ifdef HAVE_LINUX_IN_H
156 #include <linux/in.h>
162 #ifdef HAVE_RTL_MALLOC_H
163 #include <rtl_malloc.h>
185 #ifdef CONFIG_ORTE_UNIX
187 #elif CONFIG_ORTE_CYGWIN
189 #elif CONFIG_ORTE_MINGW
191 #ifndef HAVE_PTHREAD_H
192 #include <win32/pthread.h>
194 #ifndef __GETOPT_H__ //mingw
195 #include <win32/getopt.h>
197 #include <win32/timeval.h>
198 #include <orte/ew_types.h>
199 #define ioctl ioctlsocket
200 #elif defined CONFIG_ORTE_RTL
201 #include <rtl/rwlock.h>
202 #ifdef CONFIG_ORTE_RTL_ONETD
204 #include <rtl/compat_onetd.h>
205 #elif CONFIG_ORTE_RTL_WIP
207 #include <rtl/compat_rtlwip.h>
209 #error "no UDP stack for RTLinux"
211 #elif defined CONFIG_ORTE_RTAI
213 #include <rtai/compat.h>
214 #elif defined _MSC_VER
217 #define SOCK_WIN_PHARLAP
219 #define IN_CLASSD(i) (((long)(i) & 0xf0000000) == 0xe0000000)
220 #define IN_MULTICAST(i) IN_CLASSD(i)
221 #include <embtcpip.h>
223 #include <winsock2.h>
224 #include <ws2tcpip.h>
227 #define inline _inline
235 #include <win32/pharlap/pthread.h>
237 #include <win32/pthread.h>
239 #include <win32/timeval.h>
240 #include <win32/getopt.h>
241 #define ioctl ioctlsocket
242 #define ORTE_PACKAGE_STRING "orte 0.3.0"
243 #define CONFIG_ORTE_WIN
250 #endif /* _ORTE_ALL_H */