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

Side by Side Diff: native_client_sdk/src/examples/tutorial/dlopen/dlopen.cc

Issue 22642016: [NaCL SDK] Ship sys/mount.h for newlib/pnacl. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add extern C Created 7 years, 4 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include <dlfcn.h> 5 #include <dlfcn.h>
6 #include <pthread.h> 6 #include <pthread.h>
7 #include <stdio.h> 7 #include <stdio.h>
8 #include <stdlib.h> 8 #include <stdlib.h>
9 #include <string.h> 9 #include <string.h>
10 #include <sys/mount.h>
10 11
11 #include <ppapi/cpp/completion_callback.h> 12 #include <ppapi/cpp/completion_callback.h>
12 #include <ppapi/cpp/instance.h> 13 #include <ppapi/cpp/instance.h>
13 #include <ppapi/cpp/module.h> 14 #include <ppapi/cpp/module.h>
14 #include <ppapi/cpp/var.h> 15 #include <ppapi/cpp/var.h>
15 16
16 #include "eightball.h" 17 #include "eightball.h"
17 #include "nacl_io/nacl_io.h" 18 #include "nacl_io/nacl_io.h"
18 #include "reverse.h" 19 #include "reverse.h"
19 20
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 185
185 // Create and return a DlOpenInstance object. 186 // Create and return a DlOpenInstance object.
186 virtual pp::Instance* CreateInstance(PP_Instance instance) { 187 virtual pp::Instance* CreateInstance(PP_Instance instance) {
187 return new DlOpenInstance(instance); 188 return new DlOpenInstance(instance);
188 } 189 }
189 }; 190 };
190 191
191 namespace pp { 192 namespace pp {
192 Module* CreateModule() { return new DlOpenModule(); } 193 Module* CreateModule() { return new DlOpenModule(); }
193 } // namespace pp 194 } // namespace pp
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698