$NetBSD: patch-ae,v 1.5 2022/11/27 13:14:00 triaxx Exp $ Fix build on OpenBSD and Bitrig. Calling usleep for 1000000 microseconds or more is not allowed, so add a myusleep() wrapper to DTRT. --- src/proxy.h.orig 2021-07-01 16:59:57.000000000 +0000 +++ src/proxy.h @@ -21,6 +21,9 @@ #include #include #include +#if !(defined(__OpenBSD__) || !defined(__Bitrig__)) +#include +#endif #include #include @@ -100,6 +103,8 @@ #endif void daemonize(void); #define SLEEPTIME 1000 +#define usleep(usecs) myusleep(usecs) +int myusleep(useconds_t); #ifndef O_BINARY #define O_BINARY 0 #endif