Skip to content

Commit 4dd7244

Browse files
zcheeianlancetaylor
authored andcommitted
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 <[email protected]> Reviewed-by: Ian Lance Taylor <[email protected]>
1 parent a2f17f7 commit 4dd7244

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

unix/types_darwin.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ package unix
2121
#include <dirent.h>
2222
#include <fcntl.h>
2323
#include <poll.h>
24+
#include <stdint.h>
2425
#include <signal.h>
2526
#include <termios.h>
2627
#include <unistd.h>

0 commit comments

Comments
 (0)