aap / pdp6

PDP-6 Emulator
MIT License
59 stars 9 forks source link

missing include for <sys/select.h> #20

Open ams opened 4 years ago

ams commented 4 years ago

On OpenBSD, fd_set is declared in <sys/select.h>.

https://github.com/aap/pdp6/blob/5b3e2f0f19ebf06ec491c0ed464ff152789a1311/emu/util.c#L22

diff --git a/emu/util.c b/emu/util.c
index fcaed91..4b1af68 100644
--- a/emu/util.c
+++ b/emu/util.c
@@ -3,6 +3,7 @@
 #include <ctype.h>

 #include <sys/socket.h>
+#include <sys/select.h>
 #include <netinet/in.h>
 #include <netinet/tcp.h>
 #include <unistd.h>
ams commented 4 years ago

Should I close this?

larsbrinkhoff commented 2 weeks ago

Or submit a pull request.