1 // GnashImageSystemNetHeaders.h: Compatibility Network header for Gnash.
3 // Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010 Free Software
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.
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.
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:
30 /// close() (actually an FD function)
32 /// fcntl() (POSIX only!)
36 #ifndef GNASH_NET_HEADERS_H
37 #define GNASH_NET_HEADERS_H
40 #include "gnashconfig.h"
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>
49 # include <ws2tcpip.h>
51 #elif defined(__amigaos4__) //maybe HAVE_NETINET_IN_H
52 # include <netinet/in.h>
55 # include <arpa/inet.h>
56 # include <sys/types.h>
57 # include <sys/socket.h>
58 # include <sys/times.h>
60 # include <netinet/in.h>
61 # include <netinet/tcp.h>