add OPENGL_CFLAGS to CPPFLAGS for OpenBSD
[gnash.git] / libbase / GnashSystemNetHeaders.h
blobf3a761f5233a208ace08b4b37f81031f53963b35
1 // GnashImageSystemNetHeaders.h: Compatibility Network header for Gnash.
2 //
3 // Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010 Free Software
4 // Foundation, Inc
5 //
6 // This program is free software; you can redistribute it and/or modify
7 // it under the terms of the GNU General Public License as published by
8 // the Free Software Foundation; either version 3 of the License, or
9 // (at your option) any later version.
10 //
11 // This program is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 // GNU General Public License for more details.
15 //
16 // You should have received a copy of the GNU General Public License
17 // along with this program; if not, write to the Free Software
18 // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
22 /// This file should be included for:
24 /// htons()
25 /// ntohs()
26 /// gethostname()
27 /// gethostbyname()
28 /// send()
29 /// recv()
30 /// close() (actually an FD function)
31 /// socket()
32 /// fcntl() (POSIX only!)
33 /// inet_addr()
34 /// setsockopt()
36 #ifndef GNASH_NET_HEADERS_H
37 #define GNASH_NET_HEADERS_H
39 #ifdef HAVE_CONFIG_H
40 #include "gnashconfig.h"
41 #endif
43 /// @todo A configure 'test' (a #define in gnashconfig.h) might be a better
44 /// way of checking for compiler.
45 #if defined(HAVE_WINSOCK_H) && !defined(__OS2__)
46 # include <winsock2.h>
47 # include <windows.h>
48 # include <io.h>
49 # include <ws2tcpip.h>
50 # include <fcntl.h>
51 #elif defined(__amigaos4__) //maybe HAVE_NETINET_IN_H
52 # include <netinet/in.h>
53 #else
54 # include <unistd.h>
55 # include <arpa/inet.h>
56 # include <sys/types.h>
57 # include <sys/socket.h>
58 # include <sys/times.h>
59 # include <unistd.h>
60 # include <netinet/in.h>
61 # include <netinet/tcp.h>
62 # include <fcntl.h>
64 // gethostbyname()
65 # include <netdb.h>
66 #endif
68 #endif