]> git.zerfleddert.de Git - micropolis/commitdiff
src/tk/tkconfig.h: 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:51 +0000 (11:20 +0200)
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

index d8e27a20269f5d2912917bb212f9f5661b95d7c7..ca64595f679dcb7990399eb98b9438e224d86bbe 100644 (file)
@@ -45,6 +45,7 @@
 #include <sys/file.h>
 #include <sys/stat.h>
 #include <sys/time.h>
 #include <sys/file.h>
 #include <sys/stat.h>
 #include <sys/time.h>
+#include <unistd.h>
 #ifndef _TCL
 #   include <tcl.h>
 #endif
 #ifndef _TCL
 #   include <tcl.h>
 #endif
Impressum, Datenschutz