13 lines
726 B
Text
13 lines
726 B
Text
$NetBSD: patch-ae,v 1.1 2005/11/17 16:56:39 joerg Exp $
|
|
|
|
--- src/Unix/timer_unix.cpp.orig 2005-11-17 14:22:31.000000000 +0000
|
|
+++ src/Unix/timer_unix.cpp
|
|
@@ -228,7 +228,7 @@ uint64 GetTicks_usec(void)
|
|
// Linux select() changes its timeout parameter upon return to contain
|
|
// the remaining time. Most other unixen leave it unchanged or undefined.
|
|
#define SELECT_SETS_REMAINING
|
|
-#elif defined(__FreeBSD__) || defined(__sun__) || (defined(__MACH__) && defined(__APPLE__))
|
|
+#elif defined(__FreeBSD__) || defined(__sun__) || (defined(__MACH__) && defined(__APPLE__)) || defined(__DragonFly__)
|
|
#define USE_NANOSLEEP
|
|
#elif defined(HAVE_PTHREADS) && defined(sgi)
|
|
// SGI pthreads has a bug when using pthreads+signals+nanosleep,
|