about summary refs log tree commit diff
path: root/src/response.c
diff options
context:
space:
mode:
authorNakidai <nakidai@disroot.org>2024-11-29 10:37:47 +0300
committerNakidai <nakidai@disroot.org>2024-11-29 10:37:47 +0300
commit9f5f94a729ecbd99a8d2adac29b107afa80574c6 (patch)
tree49798529314b60c31070b9cffe122cf0331565d3 /src/response.c
parent2502543936a8523a24b630ca49b3185ebfd724d5 (diff)
downloadlibhttpc-9f5f94a729ecbd99a8d2adac29b107afa80574c6.tar.gz
libhttpc-9f5f94a729ecbd99a8d2adac29b107afa80574c6.zip
Add LibHTTPC_SOCK compile-time flag
Diffstat (limited to 'src/response.c')
-rw-r--r--src/response.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/response.c b/src/response.c
index 6776da3..b930fc6 100644
--- a/src/response.c
+++ b/src/response.c
@@ -1,3 +1,4 @@
+#include "config.h"
 #include "libhttpc.h"
 
 #include <stddef.h>
@@ -49,6 +50,7 @@ char *LibHTTPC_dumpResponse(struct LibHTTPC_Response *response, char *buf, size_
     return NULL;
 }
 
+#ifdef LibHTTPC_SOCK
 int LibHTTPC_writeResponse(int sockfd, struct LibHTTPC_Response *response)
 {
     char status[10];
@@ -73,3 +75,4 @@ int LibHTTPC_writeResponse(int sockfd, struct LibHTTPC_Response *response)
 
     return 0;
 }
+#endif