]> rtime.felk.cvut.cz Git - orte.git/blob - orte/include/orte_all.h
version 0.2.2 (mac, solaris patch)
[orte.git] / orte / include / orte_all.h
1 /*
2  *  $Id: orte_all.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 //win32 headers
100 #if defined HAVE_WINSOCK2_H && !HAVE_SYS_SOCKET_H
101   #include <winsock2.h>
102 #endif
103 #if defined HAVE_WS2TCPIP_H && !HAVE_SYS_SOCKET_H
104   #include <ws2tcpip.h>
105 #endif
106 #ifdef HAVE_WINDOWS_H
107   #include <windows.h>
108 #endif
109 //kernel headers
110 #ifdef HAVE_ASM_BYTEORDER_H
111   #include <asm/byteorder.h>
112 #endif
113 #ifdef HAVE_LINUX_CTYPE_H
114   #include <linux/ctype.h>
115 #endif
116 #ifdef HAVE_LINUX_STRING_H
117   #include <linux/string.h>
118 #endif
119 #ifdef HAVE_LINUX_MODULE_H
120   #include <linux/module.h>
121 #endif
122 #ifdef HAVE_LINUX_IF_H
123   #include <linux/if.h>
124 #endif
125 #ifdef HAVE_LINUX_SOCKET_H
126   #include <linux/socket.h>
127 #endif
128 #ifdef HAVE_LINUX_TIME_H
129   #include <linux/time.h>
130 #endif
131 #ifdef HAVE_LINUX_TYPES_H
132   #include <linux/types.h>
133 #endif
134 #ifdef HAVE_LINUX_IN_H
135   #include <linux/in.h>
136 #endif
137 //RTL headers
138 #ifdef HAVE_RTL_H
139   #include <rtl.h>
140 #endif
141 #ifdef HAVE_RTL_MALLOC_H
142   #include <rtl_malloc.h>
143 #endif
144 #ifdef HAVE_UDP_H
145   #include <udp.h>
146 #endif
147 #ifdef HAVE_NIC_H
148   #include <nic.h>
149 #endif
150 #ifdef HAVE_NICTAB_H
151   #include <nictab.h>
152 #endif
153 #ifdef HAVE_TIME_H
154   #include <time.h>
155 #endif
156 //RTAI headers
157 #ifdef HAVE_RTNET_H
158   #include <rtnet.h>
159 #endif
160
161 #ifdef CONFIG_ORTE_UNIX
162   #define SOCK_BSD       
163 #elif CONFIG_ORTE_CYGWIN
164   #define SOCK_BSD         
165 #elif CONFIG_ORTE_MINGW
166   #define SOCK_WIN
167   #include <win32/pthread.h>
168   #include <win32/timeval.h>
169   #ifndef __GETOPT_H__  //mingw
170     #include <win32/getopt.h>
171   #endif
172   #include <ew_types.h>
173   #define ioctl ioctlsocket
174 #elif defined CONFIG_ORTE_RTL
175   #define SOCK_RTL
176   #include <rtl/compat.h>
177   #include <rtl/rwlock.h>
178 #elif defined CONFIG_ORTE_RTAI
179   #define SOCK_BSD  
180   #include <rtai/compat.h>
181 #elif defined _MSC_VER
182   #define SOCK_WIN
183   #ifndef inline
184     #define inline _inline
185   #endif
186   #include <stdio.h>
187   #include <stdlib.h>
188   #include <stdarg.h>
189   #include <string.h>
190   #include <winsock2.h>
191   #include <ws2tcpip.h>
192   #include <windows.h>
193   #include <win32/pthread.h>
194   #include <win32/timeval.h>
195   #include <win32/getopt.h>
196   #include <ew_types.h>
197   #define ioctl ioctlsocket
198   #define ORTE_PACKAGE_STRING "orte 0.2.2"
199 #endif
200
201 #ifdef __cplusplus
202 } /* extern "C"*/
203 #endif
204
205 #endif /* _ORTE_ALL_H */