]> cvs.zerfleddert.de Git - micropolis/commitdiff
src/tk/tkevent.c: Micropolis build fixes for recent macOS
authorRyan Schmidt <ryandesign@macports.org>
Wed, 18 May 2022 10:53:08 +0000 (05:53 -0500)
committerMichael Gernoth <michael@gernoth.net>
Sat, 4 Jun 2022 09:20:59 +0000 (11:20 +0200)
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)
    ^

src/tk/tkevent.c

index 5e2c654fe853682143dd154b8ef0fb2befa647cd..0e9deb0e6ff1fefc4a4f8029eb3e6d6cd6131e59 100644 (file)
@@ -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 <errno.h>
 #include <signal.h>
 #include <sys/time.h>
Impressum, Datenschutz