head 1.1; access; symbols pkgsrc-2026Q2:1.1.0.2 pkgsrc-2026Q2-base:1.1; locks; strict; comment @ * @; 1.1 date 2026.06.20.01.17.05; author nia; state Exp; branches; next ; commitid fkFlqeemCMvRutKG; desc @@ 1.1 log @dclock: Various build fixes for GCC 14 and GCC 15. @ text @$NetBSD$ Fix implicit declaration of exit(3) and implicit int, which recent GCC no longer likes. --- dclock.c.orig 2026-06-20 01:13:24.148057716 +0000 +++ dclock.c @@@@ -19,6 +19,7 @@@@ * manager: *Dclock.seconds: on */ #include +#include #include #include "Dclock.h" @@@@ -82,7 +83,9 @@@@ static XtActionsRec actionsList[] = { { "quit", quit }, }; +int main(argc, argv) +int argc; char *argv[]; { Widget toplevel, clock_w; @