head 1.1; access; symbols; locks; strict; comment @// @; 1.1 date 2026.11.14.21.36.38; author drixter; state Exp; branches; next ; commitid UytQwequ8yZewt3H; desc @@ 1.1 log @gnu-apl: Added SunOS patches tested on SmartOS Bump PKGREVISION. @ text @$NetBSD$ SunOS Fix: Move const into proper place --- src/main.cc.orig Tue Mar 10 17:37:18 2026 +++ src/main.cc Wed Oct 14 19:56:02 2026 @@@@ -53,6 +53,7 @@@@ #include "Workspace.hh" #include "UserPreferences.hh" + #if HAVE_IOCTL_TIOCGWINSZ // platform has ioctl(fd, TIOCGWINSZ. ...) # include #endif @@@@ -422,11 +423,12 @@@@ sigaction(SIGHUP, &new_HUP_action, &old_HUP_action); signal(SIGCHLD, SIG_IGN); // do not create zombies + const UserPreferences & uprefs = UserPreferences::uprefs; + #if HAVE_IOCTL_TIOCGWINSZ // Enable the ability to change ⎕PW on window resize only if the // platform supports ioctl TIOCGWINSZ // -const UserPreferences & uprefs = UserPreferences::uprefs; if (uprefs.WINCH_sets_pw) { // IF WINCH_sets_pw preference is enabled, set up a handler for the @