gentoo-ebuilds/games-misc/bsd-games/files/bsd-games-2.17-sigpause-gnusource.patch
Emanuele Torre 13fa47aa04
games-misc/bsd-games: fix bsd-games-2.17_p28-r2 build
hunt/hunt/otto.c uses the sigpause() function that is only declared if
_GNU_SOURCE is defined in modern glibc.

Signed-off-by: Emanuele Torre <torreemanuele6@gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/38127
Signed-off-by: James Le Cuirot <chewi@gentoo.org>
2024-08-15 23:24:54 +01:00

14 lines
329 B
Diff

sigpause(3) is only declared if _GNU_SOURCE is defined.
--- a/hunt/hunt/otto.c
+++ b/hunt/hunt/otto.c
@@ -43,6 +43,8 @@
* Id: otto.c,v 1.14 2003/04/16 06:11:54 gregc Exp
*/
+#define _GNU_SOURCE /* for sigpause(3) */
+
#include <sys/cdefs.h>
#ifndef lint
__RCSID("$NetBSD: otto.c,v 1.8 2004/11/05 21:30:32 dsl Exp $");