diff options
| author | Nakidai <nakidai@disroot.org> | 2024-11-29 10:37:47 +0300 |
|---|---|---|
| committer | Nakidai <nakidai@disroot.org> | 2024-11-29 10:37:47 +0300 |
| commit | 9f5f94a729ecbd99a8d2adac29b107afa80574c6 (patch) | |
| tree | 49798529314b60c31070b9cffe122cf0331565d3 /src | |
| parent | 2502543936a8523a24b630ca49b3185ebfd724d5 (diff) | |
| download | libhttpc-9f5f94a729ecbd99a8d2adac29b107afa80574c6.tar.gz libhttpc-9f5f94a729ecbd99a8d2adac29b107afa80574c6.zip | |
Add LibHTTPC_SOCK compile-time flag
Diffstat (limited to 'src')
| -rw-r--r-- | src/response.c | 3 |
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 |