Fix compilation on FreeBSD.

git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@2583 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
meep-eep
2006-12-07 23:42:48 +00:00
parent c930b365f3
commit dfdf45608a
2 changed files with 3 additions and 0 deletions
@@ -377,7 +377,9 @@ acceptSingleConnection(ListenState *listenState, NetDescriptor *nd) {
case ENFILE:
case ENOBUFS:
case ENOMEM:
#ifdef ENOSR
case ENOSR:
#endif
// Serious problems, but future connections may still
// be possible.
log_add(log_Warning, "accept() reported '%s'\n",
@@ -33,6 +33,7 @@
#include <netdb.h>
#if defined(__FreeBSD__) || defined(__OpenBSD__)
# include <netinet/in_systm.h>
# include <netinet/in.h>
#endif
#include <netinet/ip.h>
#include <netinet/tcp.h>