]> rtime.felk.cvut.cz Git - orte.git/blob - orte/include/orte_headers.h
repear of sending strictreliable data (when is full queue)
[orte.git] / orte / include / orte_headers.h
1 /*
2  *  $Id: orte_headers.h,v 0.0.0.1       2003/08/21 
3  *
4  *  AUTHOR: Petr Smolik                 petr.smolik@wo.cz
5  *
6  *  ORTE - OCERA Real-Time Ethernet     http://www.ocera.org/
7  *  --------------------------------------------------------------------
8  *
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.
13  *  
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.
18  *  
19  */
20
21 #ifndef _ORTE_ALL_H
22 #define _ORTE_ALL_H
23
24 #ifdef __cplusplus
25 extern "C" {
26 #endif
27
28 #ifdef HAVE_CONFIG_H
29   #include "orte_config.h"
30 #elif defined OMK_FOR_USER
31   #include "orte_config_omk_unix.h"
32 #elif defined OMK_FOR_KERNEL
33   #include "orte_config_omk_rtl.h"
34 #endif
35
36 #ifdef HAVE_ARPA_INET_H
37   #include <arpa/inet.h>
38 #endif
39 #ifdef HAVE_FCNTL_H
40   #include <fcntl.h>
41 #endif
42 #ifdef HAVE_STDIO_H
43   #include <stdio.h>
44 #endif
45 #ifdef HAVE_NETDB_H
46   #include <netdb.h>
47 #endif
48 #ifdef HAVE_STDLIB_H
49   #include <stdlib.h>
50 #endif
51 #ifdef HAVE_STRING_H
52   #include <string.h>
53 #endif
54 #ifdef HAVE_SYS_IOCTL_H
55   #include <sys/ioctl.h>
56 #endif
57 #ifdef HAVE_SYS_TIME_H
58   #include <sys/time.h>
59 #endif
60 #ifdef HAVE_UNISTD_H
61   #include <unistd.h>
62 #endif
63 #ifdef HAVE_PTHREAD_H
64   #include <pthread.h>
65 #endif
66 #ifdef HAVE_SYS_TYPES_H
67   #include <sys/types.h>
68 #endif
69 #ifdef HAVE_SYS_SOCKIO_H
70   #include <sys/sockio.h>
71 #endif
72 #ifdef HAVE_STDARG_H
73   #include <stdarg.h>
74 #endif
75 #ifdef HAVE_BYTESWAP_H
76   #include <byteswap.h>
77 #endif
78 #ifdef HAVE_GETOPT_H
79   #include <getopt.h>
80 #endif
81 #ifdef HAVE_CTYPE_H
82   #include <ctype.h>
83 #endif
84 #ifdef HAVE_SIGNAL_H
85   #include <signal.h>
86 #endif
87 #ifdef HAVE_STDINT_H
88   #include <stdint.h>
89 #endif
90 #ifdef HAVE_SYS_SOCKET_H
91   #include <sys/socket.h>
92 #endif
93 #ifdef HAVE_NETINET_IN_H
94   #include <netinet/in.h>
95 #endif
96 #ifdef HAVE_NET_IF_H
97   #include <net/if.h>
98 #endif
99 #ifdef HAVE_ERRNO_H
100   #include <errno.h>
101 #endif
102 //win32 headers
103 #if defined HAVE_WINSOCK2_H && !HAVE_SYS_SOCKET_H
104   #include <winsock2.h>
105 #endif
106 #if defined HAVE_WS2TCPIP_H && !HAVE_SYS_SOCKET_H
107   #include <ws2tcpip.h>
108 #endif
109 #ifdef HAVE_WINDOWS_H
110   #include <windows.h>
111 #endif
112 #ifdef HAVE_W32API_WINDOWS_H
113   #include <w32api/windows.h>
114 #endif
115 #ifdef HAVE_ERRNO_H
116   #include <errno.h>
117 #endif
118 //kernel headers
119 #ifdef HAVE_ASM_BYTEORDER_H
120   #include <asm/byteorder.h>
121 #endif
122 #ifdef HAVE_LINUX_CTYPE_H
123   #include <linux/ctype.h>
124 #endif
125 #ifdef HAVE_LINUX_STRING_H
126   #include <linux/string.h>
127 #endif
128 #ifdef HAVE_LINUX_MODULE_H
129   #include <linux/module.h>
130 #endif
131 #ifdef HAVE_LINUX_IF_H
132   #include <linux/if.h>
133 #endif
134 #ifdef HAVE_LINUX_SOCKET_H
135   #include <linux/socket.h>
136 #endif
137 #ifdef HAVE_LINUX_TIME_H
138   #include <linux/time.h>
139 #endif
140 #ifdef HAVE_LINUX_TYPES_H
141   #include <linux/types.h>
142 #endif
143 #ifdef HAVE_LINUX_IN_H
144   #include <linux/in.h>
145 #endif
146 //RTL headers
147 #ifdef HAVE_RTL_H
148   #include <rtl.h>
149 #endif
150 #ifdef HAVE_RTL_MALLOC_H
151   #include <rtl_malloc.h>
152 #endif
153 #ifdef HAVE_UDP_H
154   #include <udp.h>
155 #endif
156 #ifdef HAVE_NIC_H
157   #include <nic.h>
158 #endif
159 #ifdef HAVE_NICTAB_H
160   #include <nictab.h>
161 #endif
162 #ifdef HAVE_TIME_H
163   #include <time.h>
164 #endif
165 //RTAI headers
166 #ifdef HAVE_RTNET_H
167   #include <rtnet.h>
168 #endif
169
170 #ifdef CONFIG_ORTE_UNIX
171   #define SOCK_BSD       
172 #elif CONFIG_ORTE_CYGWIN
173   #define SOCK_BSD         
174 #elif CONFIG_ORTE_MINGW
175   #define SOCK_WIN
176   #include <win32/pthread.h>
177   #include <win32/timeval.h>
178   #ifndef __GETOPT_H__  //mingw
179     #include <win32/getopt.h>
180   #endif
181   #include <orte/ew_types.h>
182   #define ioctl ioctlsocket
183 #elif defined CONFIG_ORTE_RTL
184   #define SOCK_RTL
185   #include <rtl/compat.h>
186   #include <rtl/rwlock.h>
187 #elif defined CONFIG_ORTE_RTAI
188   #define SOCK_BSD  
189   #include <rtai/compat.h>
190 #elif defined _MSC_VER
191   #define SOCK_WIN
192   #ifndef inline
193     #define inline _inline
194   #endif
195   #include <stdio.h>
196   #include <stdlib.h>
197   #include <stdarg.h>
198   #include <string.h>
199   #include <winsock2.h>
200   #include <ws2tcpip.h>
201   #include <windows.h>
202   #include <win32/pthread.h>
203   #include <win32/timeval.h>
204   #include <win32/getopt.h>
205   #include <orte/ew_types.h>
206   #define ioctl ioctlsocket
207   #define ORTE_PACKAGE_STRING "orte 0.2.3"
208   #define CONFIG_ORTE_WIN
209 #endif
210
211 #ifdef __cplusplus
212 } /* extern "C"*/
213 #endif
214
215 #endif /* _ORTE_ALL_H */