commit 815d19ea9ec417f53492bc6511dd94450b6845d7
parent 3693694781dddc2648002c9f1fded0f5e477b0de
Author: libredev <libredev@ircforever.org>
Date: Tue, 3 Jan 2023 22:26:26 +0530
fix undeclared identifier fd_set on OpenBSD
Diffstat:
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
@@ -22,7 +22,7 @@ install: index.cgi header.html footer.html style.css music.svg
doas cp style.css $(INSTALL_DIR)
doas cp music.svg $(INSTALL_DIR)
-index.cgi: main.c pdjson/pdjson.c
+index.cgi: main.c http.h pdjson/pdjson.c
$(CC) $(CFLAGS) -o $@ main.c pdjson/pdjson.c
run: index.cgi
diff --git a/http.h b/http.h
@@ -17,6 +17,7 @@ before you include this file in *one* C/C++ file to create the implementation.
#define _CRT_SECURE_NO_WARNINGS
#include <stddef.h> // for size_t
#include <stdint.h> // for uintptr_t
+#include <sys/select.h>
typedef enum http_status_t
{