From 30015ccf178b590ebd7fa6f50e7b77885e2a85df Mon Sep 17 00:00:00 2001 From: naddy Date: Fri, 28 May 2010 14:03:15 +0000 Subject: [PATCH] OpenBSD has always had usleep(3); fixes build with gcc4 --- games/xcubes/Makefile | 4 ++-- games/xcubes/patches/patch-Imakefile | 12 ++++++++++++ 2 files changed, 14 insertions(+), 2 deletions(-) create mode 100644 games/xcubes/patches/patch-Imakefile diff --git a/games/xcubes/Makefile b/games/xcubes/Makefile index 00ed2ccde9f..aa26b2c705d 100644 --- a/games/xcubes/Makefile +++ b/games/xcubes/Makefile @@ -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 diff --git a/games/xcubes/patches/patch-Imakefile b/games/xcubes/patches/patch-Imakefile new file mode 100644 index 00000000000..94d21064d94 --- /dev/null +++ b/games/xcubes/patches/patch-Imakefile @@ -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