From: Ryan Schmidt Date: Wed, 18 May 2022 10:53:08 +0000 (-0500) Subject: src/tk/tkevent.c: Micropolis build fixes for recent macOS X-Git-Url: http://cvs.zerfleddert.de/cgi-bin/gitweb.cgi/micropolis/commitdiff_plain/753d72ecb98f0d5f0543851fda4d246b4cc97ce9 src/tk/tkevent.c: Micropolis build fixes for recent macOS Fix: tkevent.c:682:3: error: implicit declaration of function 'TkWmProtocolEventProc' is invalid in C99 [-Werror,-Wimplicit-function-declaration] TkWmProtocolEventProc(winPtr, eventPtr); ^ tkevent.c:1447:5: error: implicit declaration of function 'Tcl_CheckForSignal' is invalid in C99 [-Werror,-Wimplicit-function-declaration] if (Tcl_CheckForSignal (tk_mainInterp, TCL_OK) == TCL_ERROR) ^ tkevent.c:1512:5: error: implicit declaration of function 'Tcl_CheckForSignal' is invalid in C99 [-Werror,-Wimplicit-function-declaration] if (Tcl_CheckForSignal (tk_mainInterp, TCL_OK) == TCL_ERROR) ^ --- diff --git a/src/tk/tkevent.c b/src/tk/tkevent.c index 5e2c654..0e9deb0 100644 --- a/src/tk/tkevent.c +++ b/src/tk/tkevent.c @@ -21,6 +21,8 @@ static char rcsid[] = "$Header: /user6/ouster/wish/RCS/tkEvent.c,v 1.60 92/08/21 #include "tkconfig.h" #include "tkint.h" +#include "tclxtend.h" +#include "tkwm.h" #include #include #include