diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/request.c | 2 | ||||
| -rw-r--r-- | src/response.c | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/src/request.c b/src/request.c index 93d2421..3536778 100644 --- a/src/request.c +++ b/src/request.c @@ -4,8 +4,10 @@ #include <stddef.h> #include <string.h> +#ifdef LibHTTPC_SOCK #include <sys/socket.h> #include <sys/types.h> +#endif struct LibHTTPC_Request *LibHTTPC_loadRequest(struct LibHTTPC_Request *request_buf, char *buf) diff --git a/src/response.c b/src/response.c index d2442ff..7964b72 100644 --- a/src/response.c +++ b/src/response.c @@ -5,7 +5,9 @@ #include <stdio.h> #include <string.h> +#ifdef LibHTTPC_SOCK #include <sys/socket.h> +#endif #define WRITE() \ |