From 9e18556ae66f4151a1ff63ffc70e38b4faf776f5 Mon Sep 17 00:00:00 2001 From: Simon Robertshaw Date: Thu, 26 Apr 2012 13:16:20 +0100 Subject: [PATCH] BSD platform, -DBSD --- src/http.c | 6 ++++-- src/update.c | 4 ++-- 2 files changed, 6 insertions(+), 4 deletions(-) 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