From c11330eeddd7f941984c0caa151684e55be1ac4c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=BA=90=E6=96=87=E9=9B=A8?= <41315874+fumiama@users.noreply.github.com> Date: Mon, 7 Jun 2021 21:46:20 +0800 Subject: [PATCH] Update server.c --- server.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server.c b/server.c index 22d9e63..60a04ac 100644 --- a/server.c +++ b/server.c @@ -22,6 +22,8 @@ #if !__APPLE__ #include +#else + struct sf_hdtr hdtr; #endif #define ISspace(x) isspace((int)(x)) @@ -154,7 +156,6 @@ void bad_request(int client) { * Parameters: the client socket descriptor * FILE pointer for the file to cat */ /**********************************************************************/ -struct sf_hdtr hdtr; void cat(int client, FILE *resource) { fseek(resource, 0, SEEK_END); off_t len = 0;