diff --git a/src/http.c b/src/http.c index 59e71312b..27e510a3e 100644 --- a/src/http.c +++ b/src/http.c @@ -23,7 +23,8 @@ #include #include #include -#ifndef MACOSX +#if !defined(MACOSX) && !defined(BSD) +#include #include #endif #include @@ -40,6 +41,7 @@ #include #include #include +#include #endif #include @@ -447,7 +449,7 @@ int http_async_req_status(void *ctx) else if (PERRNO==WSAEISCONN) cx->state = HTS_IDLE; #endif -#ifdef MACOSX +#if defined(MACOSX) || defined(BSD) else if (PERRNO==EISCONN) cx->state = HTS_IDLE; #endif diff --git a/src/update.c b/src/update.c index 0e5be48b5..24d81f0f9 100644 --- a/src/update.c +++ b/src/update.c @@ -21,7 +21,8 @@ #include #include -#ifndef MACOSX +#if !defined(MACOSX) && !defined(BSD) +#include #include #endif #include @@ -35,7 +36,6 @@ #ifdef MACOSX #include #include -#include #endif #include