From 4dd72447c267d84c51d9463fe254200196134baa Mon Sep 17 00:00:00 2001 From: Koichi Shiraishi Date: Wed, 20 Oct 2021 06:52:39 +0900 Subject: [PATCH] unix: add stdint.h for mkall.sh on darwin/arm64 currently occured below error: In file included from /Users/zchee/go/src/golang.org/x/sys/unix/types_darwin.go:24: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/signal.h:63: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/signal.h:146: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/machine/_mcontext.h:34: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/arm/_mcontext.h:36: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/mach/machine/_structs.h:35: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/mach/arm/_structs.h:482:2: error: unknown type name 'uint32_t' uint32_t fpsr; ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/mach/arm/_structs.h:483:2: error: unknown type name 'uint32_t' uint32_t fpcr; ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/mach/arm/_structs.h:489:2: error: unknown type name 'uint32_t' uint32_t fpsr; ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/mach/arm/_structs.h:490:2: error: unknown type name 'uint32_t' uint32_t fpcr; ^ 4 errors generated. Change-Id: Iba2520fbf600914d3e8ed54b073039a6470846f7 Reviewed-on: https://go-review.googlesource.com/c/sys/+/357070 Reviewed-by: Tobias Klauser Reviewed-by: Ian Lance Taylor --- unix/types_darwin.go | 1 + 1 file changed, 1 insertion(+) diff --git a/unix/types_darwin.go b/unix/types_darwin.go index f6162cc7..820e2d62 100644 --- a/unix/types_darwin.go +++ b/unix/types_darwin.go @@ -21,6 +21,7 @@ package unix #include #include #include +#include #include #include #include