Added some Linux support.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@1275 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
4c04d9a93b
commit
043e75872d
1 changed files with 21 additions and 0 deletions
21
fteqtv/qtv.h
21
fteqtv/qtv.h
|
@ -37,6 +37,27 @@
|
|||
#define ioctlsocket ioctl
|
||||
#define closesocket close
|
||||
|
||||
#elif defined(linux)
|
||||
#include <sys/types.h>
|
||||
#include <sys/socket.h>
|
||||
#include <netdb.h>
|
||||
#include <stdarg.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <errno.h>
|
||||
#include <sys/ioctl.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#ifndef SOCKET
|
||||
#define SOCKET int
|
||||
#endif
|
||||
#ifndef INVALID_SOCKET
|
||||
#define INVALID_SOCKET -1
|
||||
#endif
|
||||
#define qerrno errno
|
||||
|
||||
#define ioctlsocket ioctl
|
||||
#define closesocket close
|
||||
#else
|
||||
#error "Please insert required headers here"
|
||||
//try the cygwin ones
|
||||
|
|
Loading…
Reference in a new issue