diff options
| author | Simon 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) |
| commit | 9e18556ae66f4151a1ff63ffc70e38b4faf776f5 (patch) | |
| tree | 1895b2c133c6c5deda6a71fb89e6a407cb38fce3 /src/http.c | |
| parent | 5a2a3e5c1f62d1b7ab486445604018333d6d2812 (diff) | |
| download | powder-9e18556ae66f4151a1ff63ffc70e38b4faf776f5.zip powder-9e18556ae66f4151a1ff63ffc70e38b4faf776f5.tar.gz | |
BSD platform, -DBSD
Diffstat (limited to 'src/http.c')
| -rw-r--r-- | src/http.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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 |
