use nanosleep

This commit is contained in:
jolan 2006-12-04 03:52:08 +00:00
parent 4971ebf88f
commit c903391a58
2 changed files with 14 additions and 2 deletions

View File

@ -1,11 +1,11 @@
# $OpenBSD: Makefile,v 1.47 2006/10/19 00:26:33 pvalchev Exp $
# $OpenBSD: Makefile,v 1.48 2006/12/04 03:52:08 jolan Exp $
# Uses pthreads
COMMENT= "cross-platform multimedia library"
VERSION= 1.2.9
DISTNAME= SDL-${VERSION}
PKGNAME= ${DISTNAME:L}p1
PKGNAME= ${DISTNAME:L}p2
CATEGORIES= devel
HOMEPAGE= http://www.libsdl.org/

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-src_timer_linux_SDL_systimer_c,v 1.3 2006/12/04 03:52:08 jolan Exp $
--- src/timer/linux/SDL_systimer.c.orig Sun Jan 4 10:49:19 2004
+++ src/timer/linux/SDL_systimer.c Mon Nov 27 10:42:12 2006
@@ -55,7 +55,7 @@ static char rcsid =
/* 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(__bsdi__) || defined(__FreeBSD__) || defined(__sun)
+#elif defined(__bsdi__) || defined(__FreeBSD__) || defined(__sun) || defined(__OpenBSD__)
#define USE_NANOSLEEP
#endif