FreeWRL/FreeX3D  3.0.0
system_net.h
1 /*
2 
3 
4 FreeWRL support library.
5 Internal header: network dependencies.
6 
7 */
8 
9 /****************************************************************************
10  This file is part of the FreeWRL/FreeX3D Distribution.
11 
12  Copyright 2009 CRC Canada. (http://www.crc.gc.ca)
13 
14  FreeWRL/FreeX3D is free software: you can redistribute it and/or modify
15  it under the terms of the GNU Lesser Public License as published by
16  the Free Software Foundation, either version 3 of the License, or
17  (at your option) any later version.
18 
19  FreeWRL/FreeX3D is distributed in the hope that it will be useful,
20  but WITHOUT ANY WARRANTY; without even the implied warranty of
21  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22  GNU General Public License for more details.
23 
24  You should have received a copy of the GNU General Public License
25  along with FreeWRL/FreeX3D. If not, see <http://www.gnu.org/licenses/>.
26 ****************************************************************************/
27 
28 
29 #ifndef __LIBFREEWRL_SYSTEM_NET_H__
30 #define __LIBFREEWRL_SYSTEM_NET_H__
31 
32 #if !defined(WIN32)
33 
34 #if HAVE_SYS_SOCKET_H
35 # if HAVE_SYS_TYPES_H
36 # include <sys/types.h>
37 # endif
38 # include <sys/socket.h>
39 #endif
40 
41 #include <netinet/in.h>
42 #if defined(_ANDROID)
43 #include <linux/msg.h>
44 #else
45 #include <sys/msg.h>
46 #endif
47 
48 #else
49 
50 #include <winsock.h>
51 
52 #endif
53 
54 
55 #endif /* __LIBFREEWRL_SYSTEM_NET_H__ */