From 9f5f94a729ecbd99a8d2adac29b107afa80574c6 Mon Sep 17 00:00:00 2001 From: Nakidai Date: Fri, 29 Nov 2024 10:37:47 +0300 Subject: Add LibHTTPC_SOCK compile-time flag --- src/response.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') 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 @@ -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 -- cgit 1.4.1