try to fix webgl

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4425 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2013-07-15 09:55:27 +00:00
parent 1f0e6651b1
commit 236e08f9fb
1 changed files with 3 additions and 2 deletions

View File

@ -1,12 +1,13 @@
#ifndef NACL
#define HAVE_IPV4 //says we can set and receive AF_INET ipv4 udp packets.
#define HAVE_IPV4 //says we can send and receive AF_INET ipv4 udp packets.
#define HAVE_TCP //says we can use tcp too (either ipv4 or ipv6)
#define HAVE_PACKET //if we have the socket api at all...
#endif
#ifdef FTE_TARGET_WEB
#undef HAVE_PACKET //no udp packet interface.
#undef HAVE_TCP //we should probably use websockets instead.
#endif
#ifdef NACL
@ -141,6 +142,7 @@
#define EAFNOSUPPORT WSAEAFNOSUPPORT
#else
#include <sys/time.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
@ -148,7 +150,6 @@
#include <netdb.h>
#include <sys/ioctl.h>
#include <sys/uio.h>
#include <sys/time.h>
#include <arpa/inet.h>
#include <errno.h>