BSD platform, -DBSD

This commit is contained in:
Simon Robertshaw 2012-04-26 13:16:20 +01:00
parent 5a2a3e5c1f
commit 9e18556ae6
2 changed files with 6 additions and 4 deletions

View File

@ -23,7 +23,8 @@
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#ifndef MACOSX #if !defined(MACOSX) && !defined(BSD)
#include <sys/param.h>
#include <malloc.h> #include <malloc.h>
#endif #endif
#include <time.h> #include <time.h>
@ -40,6 +41,7 @@
#include <signal.h> #include <signal.h>
#include <sys/socket.h> #include <sys/socket.h>
#include <netdb.h> #include <netdb.h>
#include <netinet/in.h>
#endif #endif
#include <defines.h> #include <defines.h>
@ -447,7 +449,7 @@ int http_async_req_status(void *ctx)
else if (PERRNO==WSAEISCONN) else if (PERRNO==WSAEISCONN)
cx->state = HTS_IDLE; cx->state = HTS_IDLE;
#endif #endif
#ifdef MACOSX #if defined(MACOSX) || defined(BSD)
else if (PERRNO==EISCONN) else if (PERRNO==EISCONN)
cx->state = HTS_IDLE; cx->state = HTS_IDLE;
#endif #endif

View File

@ -21,7 +21,8 @@
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#ifndef MACOSX #if !defined(MACOSX) && !defined(BSD)
#include <sys/param.h>
#include <malloc.h> #include <malloc.h>
#endif #endif
#include <string.h> #include <string.h>
@ -35,7 +36,6 @@
#ifdef MACOSX #ifdef MACOSX
#include <mach-o/dyld.h> #include <mach-o/dyld.h>
#include <errno.h> #include <errno.h>
#include <sys/param.h>
#endif #endif
#include <update.h> #include <update.h>