From: Ryan Schmidt Date: Wed, 18 May 2022 10:53:08 +0000 (-0500) Subject: src/tk/tkconfig.h: Micropolis build fixes for recent macOS X-Git-Url: http://cvs.zerfleddert.de/cgi-bin/gitweb.cgi/micropolis/commitdiff_plain/056053a6a9c5d780be96ae4865d01fed5700f90c src/tk/tkconfig.h: Micropolis build fixes for recent macOS Fix: tkoption.c:875:9: error: implicit declaration of function 'read' is invalid in C99 [-Werror,-Wimplicit-function-declaration] if (read(fileId, buffer, (int) statBuf.st_size) != statBuf.st_size) { ^ --- diff --git a/src/tk/tkconfig.h b/src/tk/tkconfig.h index d8e27a2..ca64595 100644 --- a/src/tk/tkconfig.h +++ b/src/tk/tkconfig.h @@ -45,6 +45,7 @@ #include #include #include +#include #ifndef _TCL # include #endif