Now builds with Libnix.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2809 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Mark Olsen 2007-12-11 15:47:16 +00:00
parent c212c7e5e0
commit fbdf2d4d25
1 changed files with 12 additions and 1 deletions

View File

@ -91,7 +91,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#include <arpa/inet.h>
#include <stdarg.h>
#include <netdb.h>
#include <stdlib.h>
#include <sys/ioctl.h>
#include <unistd.h>
@ -114,6 +113,18 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#define ioctlsocket ioctl
#define closesocket close
#elif (defined(__MORPHOS__) && !defined(ixemul))
#include <stdlib.h>
#include <unistd.h>
#include <sys/socket.h>
#include <sys/ioctl.h>
#include <netinet/in.h>
#include <netdb.h>
#include <errno.h>
#define ioctlsocket IoctlSocket
#define closesocket CloseSocket
#else
#error "Please insert required headers here"
//try the cygwin ones