OpenBSD has always had usleep(3); fixes build with gcc4

This commit is contained in:
naddy 2010-05-28 14:03:15 +00:00
parent 955c7c4a26
commit 30015ccf17
2 changed files with 14 additions and 2 deletions

View File

@ -1,10 +1,10 @@
# $OpenBSD: Makefile,v 1.21 2009/08/10 06:31:43 kili Exp $
# $OpenBSD: Makefile,v 1.22 2010/05/28 14:03:15 naddy Exp $
#
COMMENT= cube puzzle for X11
DISTNAME= xcubes-5.5.2
PKGNAME= ${DISTNAME}p1
PKGNAME= ${DISTNAME}p2
CATEGORIES= games
# License: BSD

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-Imakefile,v 1.1 2010/05/28 14:03:15 naddy Exp $
--- Imakefile.orig Fri May 28 15:59:18 2010
+++ Imakefile Fri May 28 15:59:46 2010
@@ -124,7 +124,7 @@ EXTRA_LIBRARIES = -lnsl -lposix4
SLEEPDEF = -DHAVE_USLEEP=1
#endif
#endif
-#if defined(FreeBSDArchitecture) || defined(NetBSDArchitecture) || defined(i386BsdArchitecture)
+#if defined(FreeBSDArchitecture) || defined(NetBSDArchitecture) || defined(OpenBSDArchitecture) || defined(i386BsdArchitecture)
SLEEPDEF = -DHAVE_USLEEP=1
#endif
#ifdef LinuxArchitecture