]> rtime.felk.cvut.cz Git - orte.git/blob - orte/include/orte_all.h
Update of ORTE. Configured to compile for Linux out of box.
[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 #define _GNU_SOURCE
29
30 #ifdef HAVE_CONFIG_H
31   #include "orte_config.h"
32 #endif
33
34 #ifdef HAVE_UNISTD_H
35   #include <unistd.h>
36 #endif
37 #ifdef HAVE_STDIO_H
38   #include <stdio.h>
39 #endif
40 #ifdef HAVE_STDLIB_H
41   #include <stdlib.h>
42 #endif
43 #ifdef HAVE_STRING_H
44   #include <string.h>
45 #endif
46 #ifdef HAVE_SOCKET
47   #include <sys/socket.h>
48 #endif
49 #ifdef HAVE_NETDB_H
50   #include <netdb.h>
51 #endif
52 #ifdef HAVE_NET_IF_H
53   #include <net/if.h>
54 #endif
55 #ifdef HAVE_NETINET_IN_H
56   #include <netinet/in.h>
57 #endif
58 #ifdef HAVE_ARPA_INET_H
59   #include <arpa/inet.h>
60 #endif
61 #ifdef HAVE_FCNTL_H
62   #include <fcntl.h>
63 #endif
64 #ifdef HAVE_SYS_IOCTL_H
65   #include <sys/ioctl.h>
66 #endif
67 #ifdef HAVE_SYS_TIME_H
68   #include <sys/time.h>
69 #endif
70 #ifdef HAVE_PTHREAD_H
71   #include <pthread.h>
72 #endif
73 #ifdef HAVE_SYS_TYPES_H
74   #include <sys/types.h>
75 #endif
76 #ifdef HAVE_BYTESWAP_H
77   #include <byteswap.h>
78 #endif
79 #ifdef HAVE_STDARG_H
80   #include <stdarg.h>
81 #endif
82 #ifdef HAVE_CTYPE_H
83   #include <ctype.h>
84 #endif
85 #ifdef HAVE_WINSOCK2_H
86   #include <winsock2.h>
87 #endif
88 #ifdef HAVE_WS2TCPIP_H
89   #include <ws2tcpip.h>
90 #endif
91
92 #ifdef CONFIG_ORTE_UNIX
93   #define SOCK_BSD       
94 #elif defined _WIN32
95   #ifndef HAVE_CONFIG_H
96     #include "config.h.undef"
97     #if defined(_MSC_VER) || defined (_OMK_UNIX) 
98       #ifndef inline
99         #define inline _inline
100       #endif
101       #include <stdio.h>
102       #include <stdlib.h>
103       #include <stdarg.h>
104       #include <string.h>
105       #include <winsock2.h>
106       #include <ws2tcpip.h>
107     #endif
108   #endif
109   #include <pthread.h>
110   #include <timeval.h>
111   #include <ew_types.h>
112   #define ioctl ioctlsocket
113   #define SOCK_WIN
114 #elif defined __RTL__
115   #ifndef HAVE_CONFIG_H
116     #include "config.h.undef"
117   #endif
118   #include <rtl.h>
119   #include <posix/pthread.h>
120   #include <posix/time.h>
121   #include <rtl_malloc.h>
122   #include <byteswap.h>
123   #include <udp.h>
124   #include <nic.h>
125   #include <nictab.h>
126   #include <ctype.h>
127   #include <time.h>
128   #include <rtl/compat.h>
129   #include <rtl/rwlock.h>
130   #define SOCK_RTL
131 #elif defined CONFIG_ORTE_RTAI
132   #undef PACKAGE_NAME
133   #undef PACKAGE_BUGREPORT
134   #undef PACKAGE_STRING
135   #undef PACKAGE
136   #undef PACKAGE_TARNAME
137   #undef PACKAGE_VERSION
138   #undef VERSION
139 //  #include "config.h.undef"
140   #include <linux/module.h>
141   #include <rtai_posix.h.patched>
142   #include <byteswap.h>
143   #include <rtnet.h>
144   #include <linux/if.h>
145   #include <linux/in.h>
146   #include <linux/ctype.h>
147   #include <rtai/compat.h>
148   #define SOCK_BSD
149   
150 //  #define SOCK_RTAI
151 #elif defined _OMK_UNIX
152   #define SOCK_BSD       
153   #include "config.h.undef"
154   #include <unistd.h>
155   #include <stdio.h>
156   #include <stdlib.h>
157   #include <string.h>
158   #include <sys/socket.h>
159   #include <netdb.h>
160   #include <net/if.h>
161   #include <netinet/in.h>
162   #include <arpa/inet.h>
163   #include <fcntl.h>
164   #include <sys/ioctl.h>
165   #include <sys/time.h>
166   #include <pthread.h>
167   #include <sys/types.h>
168   #include <byteswap.h>
169   #include <stdarg.h>
170   #include <ctype.h>
171 #endif
172
173 #ifdef __cplusplus
174 } /* extern "C"*/
175 #endif
176
177 #endif /* _ORTE_ALL_H */