Commit 8e56eb8b authored by Mikio Hara's avatar Mikio Hara

runtime: fix build on freebsd/arm

This CL is in preparation to make cgo work on freebsd/arm.

How to generate defs-files on freebsd/arm in the bootstrapping phase:
1. run freebsd on appropriate arm-eabi platforms
2. both syscall z-files and runtime def-files in the current tree are
   broken about EABI padding, fix them by hand
3. run make.bash again to build $GOTOOLDIR/cgo
4. use $GOTOOLDIR/cgo directly

LGTM=minux.ma, iant
R=iant, minux.ma, dave
CC=golang-codereviews
https://golang.org/cl/59580045
parent d3b9567a
...@@ -159,10 +159,12 @@ struct Ucontext { ...@@ -159,10 +159,12 @@ struct Ucontext {
struct Timespec { struct Timespec {
int64 tv_sec; int64 tv_sec;
int32 tv_nsec; int32 tv_nsec;
byte Pad_cgo_0[4];
}; };
struct Timeval { struct Timeval {
int64 tv_sec; int64 tv_sec;
int32 tv_usec; int32 tv_usec;
byte Pad_cgo_0[4];
}; };
struct Itimerval { struct Itimerval {
Timeval it_interval; Timeval it_interval;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment