Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37704596
en ru br
ALT Linux repos
S:2.17-alt3_71

Group :: Games/Other
RPM: bsd-games

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: bsd-games-c99.patch
Download


The sigpause function in glibc is the XPG version, not the BSD
version.  But the signal mask is set by the immediately following
sigsetmask function anyway, so remove the sigpause function call.
This avoids an implicit function declaration and build failures with
future compilers.
diff -ur bsd-games-2.17.orig/hunt/hunt/otto.c bsd-games-2.17/hunt/hunt/otto.c
--- bsd-games-2.17.orig/hunt/hunt/otto.c	2004-12-07 14:34:21.000000000 +0100
+++ bsd-games-2.17/hunt/hunt/otto.c	2023-02-05 17:58:11.266200099 +0100
@@ -178,7 +178,6 @@
 	(void) signal(SIGALRM, nothing);
 	old_mask = sigblock(sigmask(SIGALRM));
 	setitimer(ITIMER_REAL, &pause_time, NULL);
-	sigpause(old_mask);
 	sigsetmask(old_mask);
 
 	/* save away parameters so other functions may use/update info */
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin