Files
pkgsrc-ng/net/3proxy/patches/patch-ae
2016-01-21 23:41:46 +01:00

24 lines
562 B
Plaintext

$NetBSD: patch-ae,v 1.2 2015/04/06 02:26:53 rodent 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