summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@Simons-Mac-Pro.local>2012-04-26 12:16:20 (GMT)
committer Simon Robertshaw <simon@Simons-Mac-Pro.local>2012-04-26 12:16:20 (GMT)
commit9e18556ae66f4151a1ff63ffc70e38b4faf776f5 (patch)
tree1895b2c133c6c5deda6a71fb89e6a407cb38fce3 /src
parent5a2a3e5c1f62d1b7ab486445604018333d6d2812 (diff)
downloadpowder-9e18556ae66f4151a1ff63ffc70e38b4faf776f5.zip
powder-9e18556ae66f4151a1ff63ffc70e38b4faf776f5.tar.gz
BSD platform, -DBSD
Diffstat (limited to 'src')
-rw-r--r--src/http.c6
-rw-r--r--src/update.c4
2 files changed, 6 insertions, 4 deletions
diff --git a/src/http.c b/src/http.c
index 59e7131..27e510a 100644
--- a/src/http.c
+++ b/src/http.c
@@ -23,7 +23,8 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
-#ifndef MACOSX
+#if !defined(MACOSX) && !defined(BSD)
+#include <sys/param.h>
#include <malloc.h>
#endif
#include <time.h>
@@ -40,6 +41,7 @@
#include <signal.h>
#include <sys/socket.h>
#include <netdb.h>
+#include <netinet/in.h>
#endif
#include <defines.h>
@@ -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 0e5be48..24d81f0 100644
--- a/src/update.c
+++ b/src/update.c
@@ -21,7 +21,8 @@
#include <stdio.h>
#include <stdlib.h>
-#ifndef MACOSX
+#if !defined(MACOSX) && !defined(BSD)
+#include <sys/param.h>
#include <malloc.h>
#endif
#include <string.h>
@@ -35,7 +36,6 @@
#ifdef MACOSX
#include <mach-o/dyld.h>
#include <errno.h>
-#include <sys/param.h>
#endif
#include <update.h>