pkgsrc/net/3proxy/patches/patch-ae
2016-07-08 15:55:24 +00:00

23 lines
556 B
Text

$NetBSD: patch-ae,v 1.3 2016/07/08 15:55:24 rillig Exp $
--- src/proxy.h.orig 2015-02-17 13:07:21.000000000 +0000
+++ src/proxy.h
@@ -22,7 +22,9 @@
#include <ctype.h>
#include <sys/types.h>
#include <sys/stat.h>
+#if !(defined(__OpenBSD__) || !defined(__Bitrig__))
#include <sys/timeb.h>
+#endif
#include <fcntl.h>
#include <time.h>
@@ -101,6 +103,8 @@
#endif
#define daemonize() daemon(1,1)
#define SLEEPTIME 1000
+#define usleep(usecs) myusleep(usecs)
+int myusleep(useconds_t);
#ifndef O_BINARY
#define O_BINARY 0
#endif