• Matthew Dempsky's avatar
    cmd/cgo: fix handling of defs_linux.go · f7a8adbd
    Matthew Dempsky authored
    Instead of including <sys/types.h> to get size_t, instead include
    the ISO C standard <stddef.h> header, which defines fewer additional
    types at risk of colliding with the user code.  In particular, this
    prevents collisions between <sys/types.h>'s userspace definitions with
    the kernel definitions needed by defs_linux.go.
    
    Also, -cdefs mode uses #pragma pack, so we can keep misaligned fields.
    
    Fixes #8477.
    
    LGTM=iant
    R=golang-codereviews, iant
    CC=golang-codereviews
    https://golang.org/cl/120610043
    f7a8adbd
Name
Last commit
Last update
..
android Loading commit data...
arm Loading commit data...
cgo Loading commit data...
chrome/gophertool Loading commit data...
dashboard/codereview Loading commit data...
git Loading commit data...
linkcheck Loading commit data...
makerelease Loading commit data...
nacl Loading commit data...
swig Loading commit data...
benchcmp Loading commit data...
editors Loading commit data...
pprof Loading commit data...