summary refs log tree commit diff
path: root/src/response.c
diff options
context:
space:
mode:
authorNakidai <nakidai@disroot.org>2024-12-22 14:51:33 +0300
committerNakidai <nakidai@disroot.org>2024-12-22 14:51:33 +0300
commitb4c8fdbe773fe2a8cf921415f40043acefa26b5d (patch)
tree1cddc0c9caf28601ba9747275d65b0924f569275 /src/response.c
parent6d6450e13c31f085077da61c84eafdfd70348d52 (diff)
downloadlibhttpc-1.1.1.tar.gz
libhttpc-1.1.1.zip
Fix NOSOCK HEAD v1.1.1 master
Code was including socket-related headers even with NOSOCK
Diffstat (limited to 'src/response.c')
-rw-r--r--src/response.c2
1 files changed, 2 insertions, 0 deletions
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()                                             \