[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 Review URL: https://codereview.chromium.org/577763002 Cr-Commit-Position: refs/heads/master@{#295164}
Showing
Please register or sign in to comment