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:
parent
1f0e6651b1
commit
236e08f9fb
1 changed files with 3 additions and 2 deletions
|
@ -1,12 +1,13 @@
|
||||||
|
|
||||||
#ifndef NACL
|
#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_TCP //says we can use tcp too (either ipv4 or ipv6)
|
||||||
#define HAVE_PACKET //if we have the socket api at all...
|
#define HAVE_PACKET //if we have the socket api at all...
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef FTE_TARGET_WEB
|
#ifdef FTE_TARGET_WEB
|
||||||
#undef HAVE_PACKET //no udp packet interface.
|
#undef HAVE_PACKET //no udp packet interface.
|
||||||
|
#undef HAVE_TCP //we should probably use websockets instead.
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef NACL
|
#ifdef NACL
|
||||||
|
@ -141,6 +142,7 @@
|
||||||
#define EAFNOSUPPORT WSAEAFNOSUPPORT
|
#define EAFNOSUPPORT WSAEAFNOSUPPORT
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
#include <sys/time.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <sys/socket.h>
|
#include <sys/socket.h>
|
||||||
#include <netinet/in.h>
|
#include <netinet/in.h>
|
||||||
|
@ -148,7 +150,6 @@
|
||||||
#include <netdb.h>
|
#include <netdb.h>
|
||||||
#include <sys/ioctl.h>
|
#include <sys/ioctl.h>
|
||||||
#include <sys/uio.h>
|
#include <sys/uio.h>
|
||||||
#include <sys/time.h>
|
|
||||||
#include <arpa/inet.h>
|
#include <arpa/inet.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue