sys/param.h is such a boring thing to include. Also, define INADDR_LOOPBACK for systems which don't have that define.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@1744 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Mark Olsen 2005-12-31 13:33:10 +00:00
parent ad4568a186
commit 41fdeb5678
1 changed files with 4 additions and 1 deletions

View File

@ -25,7 +25,6 @@
#include <netinet/in.h>
#include <netinet/tcp.h>
#include <netdb.h>
#include <sys/param.h>
#include <sys/ioctl.h>
#include <sys/uio.h>
#include <arpa/inet.h>
@ -64,3 +63,7 @@
#define INVALID_SOCKET -1
#endif
#ifndef INADDR_LOOPBACK
#define INADDR_LOOPBACK 0x7f000001
#endif