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:
Mark Olsen 2005-09-06 16:44:31 +00:00
parent 4c04d9a93b
commit 043e75872d

View file

@ -37,6 +37,27 @@
#define ioctlsocket ioctl #define ioctlsocket ioctl
#define closesocket close #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 #else
#error "Please insert required headers here" #error "Please insert required headers here"
//try the cygwin ones //try the cygwin ones