Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(359)

Unified Diff: native_client_sdk/src/libraries/nacl_mounts/kernel_wrap.cc

Issue 11066105: [NaCl SDK] nacl_mounts: wrap functions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: win fix Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: native_client_sdk/src/libraries/nacl_mounts/kernel_wrap.cc
diff --git a/native_client_sdk/src/libraries/nacl_mounts/kernel_wrap.cc b/native_client_sdk/src/libraries/nacl_mounts/kernel_wrap.cc
new file mode 100644
index 0000000000000000000000000000000000000000..0dd50211efdcf8aa84ca40d29c23ea1f216f0ade
--- /dev/null
+++ b/native_client_sdk/src/libraries/nacl_mounts/kernel_wrap.cc
@@ -0,0 +1,18 @@
+/* Copyright (c) 2012 The Chromium Authors. All rights reserved.
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file.
+ */
+
+#include <sys/types.h> // Include something that will define __GLIBC__.
+
+#if defined(__native_client__)
+# if defined(__GLIBC__)
+# include "kernel_wrap_glibc.cc"
+# else // !__GLIBC__
+# include "kernel_wrap_newlib.cc"
+# endif
+#elif defined(WIN32)
+# include "kernel_wrap_win.cc"
+#else
+# error Kernel wrapping not supported on your platform!
+#endif

Powered by Google App Engine
This is Rietveld 408576698