summaryrefslogtreecommitdiffstats
path: root/native_client_sdk
diff options
context:
space:
mode:
authorbinji@chromium.org <binji@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-05-27 23:50:25 +0000
committerbinji@chromium.org <binji@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-05-27 23:50:25 +0000
commit2184fdfb4eb34fa5f7a65295f24762c4f6569c4a (patch)
tree40a3a7a488cd39239def268eeee73c8eafba3ba2 /native_client_sdk
parenta3cfbfaab843a48399ffb31a73f98366e88417f0 (diff)
downloadchromium_src-2184fdfb4eb34fa5f7a65295f24762c4f6569c4a.zip
chromium_src-2184fdfb4eb34fa5f7a65295f24762c4f6569c4a.tar.gz
chromium_src-2184fdfb4eb34fa5f7a65295f24762c4f6569c4a.tar.bz2
[NaCl SDK] Fix include_next of stdlib.h
This change moves include_next outside of the include guard. On PNaCl, including <stdlib.h> will include usr/include/stdlib.h. Naclports copies this file to toolchain/linux_pnacl/usr/local/include/stdlib.h, which will be included next. Since it uses the same include guard, the real stdlib.h won't be included. This change fixes the linux SDK builder: voronoi.cc:48:37: error: use of undeclared identifier 'rand_r' return static_cast<unsigned char>(rand_r(&g_rand_state) & 255); ^ BUG=none R=sbc@chromium.org Review URL: https://codereview.chromium.org/293403010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@273075 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'native_client_sdk')
-rw-r--r--native_client_sdk/src/libraries/nacl_io/include/stdlib.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/native_client_sdk/src/libraries/nacl_io/include/stdlib.h b/native_client_sdk/src/libraries/nacl_io/include/stdlib.h
index 5ffae74..5bea35f 100644
--- a/native_client_sdk/src/libraries/nacl_io/include/stdlib.h
+++ b/native_client_sdk/src/libraries/nacl_io/include/stdlib.h
@@ -6,7 +6,6 @@
#define LIBRARIES_NACL_IO_INCLUDE_STDLIB_H_
#include <sys/cdefs.h>
-#include_next <stdlib.h>
__BEGIN_DECLS
@@ -15,3 +14,5 @@ char* realpath(const char* path, char* resolved_path);
__END_DECLS
#endif
+
+#include_next <stdlib.h>