openbsd-ports/x11/icewm/patches/patch-src_icesh_cc
bket 589cc75059 Update to icewm-1.6.4
Release notes can be found at https://github.com/ice-wm/icewm/releases/

OK cwen@
2020-02-01 19:48:19 +00:00

41 lines
1.0 KiB
Plaintext

$OpenBSD: patch-src_icesh_cc,v 1.6 2020/02/01 19:48:20 bket Exp $
Don't do this GNU extension stuff.
Index: src/icesh.cc
--- src/icesh.cc.orig
+++ src/icesh.cc
@@ -1930,6 +1930,8 @@ void IceSh::doSync()
bool IceSh::colormaps()
{
+ void (*previous)(int);
+
if ( !isAction("colormaps", 0))
return false;
@@ -1938,7 +1940,7 @@ bool IceSh::colormaps()
tlog("colormaps");
running = true;
- sighandler_t previous = signal(SIGINT, catcher);
+ previous = signal(SIGINT, catcher);
while (running) {
int n = 0;
Colormap* map = XListInstalledColormaps(display, root, &n);
@@ -1965,11 +1967,13 @@ bool IceSh::colormaps()
bool IceSh::guiEvents()
{
+ void (*previous)(int);
+
if ( !isAction("guievents", 0))
return false;
running = true;
- sighandler_t previous = signal(SIGINT, catcher);
+ previous = signal(SIGINT, catcher);
XSelectInput(display, root, PropertyChangeMask);
while (running) {
if (XPending(display)) {