summaryrefslogtreecommitdiff
path: root/net/3proxy/patches/patch-ae
blob: 3f9bc3003d04afe0988602350521786b0e55b166 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
$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