Descriptioncmd/cgo: fix handling of defs_linux.go
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 issue 8477.
Patch Set 1 #Patch Set 2 : diff -r 88999b670ed9 https://code.google.com/p/go #Patch Set 3 : diff -r 88999b670ed9 https://code.google.com/p/go #
Total comments: 1
Patch Set 4 : diff -r 88999b670ed9 https://code.google.com/p/go #Patch Set 5 : diff -r 88999b670ed9 https://code.google.com/p/go #Patch Set 6 : diff -r 88999b670ed9 https://code.google.com/p/go #Patch Set 7 : diff -r 88999b670ed9 https://code.google.com/p/go #Patch Set 8 : diff -r 88999b670ed9 https://code.google.com/p/go #Patch Set 9 : diff -r ed83901ff17e https://code.google.com/p/go #
MessagesTotal messages: 10
|