Description[NaCl SDK] Fix sys/time.h and utime.h headers
include_next must be outside the include guard!
When naclports builds a package, it copies the headers from
$NACL_SDK_ROOT/include/$toolchain directly into the toolchain include
directories (i.e. toolchain/linux_x86_newlib/x86_64-nacl/usr/include).
This means that the same header is included twice in the header seach path,
e.g.:
$NACL_SDK_ROOT/include/newlib/foo.h
$NACL_SDK_ROOT/toolchain/linux_x86_newlib/x86_64-nacl/usr/include/foo.h
If include_next is inside the include guard, then the full include chain for
that header name will not be followed (it will stop when it hits the same
include guard).
BUG=none
R=bradnelson@google.com, sbc@chromium.org, bradnelson@chromium.org
Committed: https://crrev.com/2b6e7b2f800fb5ec9755492d208175c95d8531c7
Cr-Commit-Position: refs/heads/master@{#295164}
Patch Set 1 #
Messages
Total messages: 6 (1 generated)
|