diff -Naur a/include/compat.h b/include/compat.h
--- a/include/compat.h	2019-08-03 10:48:42.000000000 -0700
+++ b/include/compat.h	2020-03-01 19:26:14.000000000 -0800
@@ -57,7 +57,7 @@ typedef int socklen_t;
 
 #else
 
-#include <sys/errno.h>
+#include <errno.h>
 #include <sys/socket.h>
 #include <netinet/in.h>
 #include <netinet/tcp.h>
