From 056053a6a9c5d780be96ae4865d01fed5700f90c Mon Sep 17 00:00:00 2001 From: Ryan Schmidt Date: Wed, 18 May 2022 05:53:08 -0500 Subject: [PATCH] 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) { ^ --- src/tk/tkconfig.h | 1 + 1 file changed, 1 insertion(+) 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 -- 2.39.5