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

Side by Side Diff: ports/busybox/nacl.patch

Issue 1418623008: Fix link error with busybox and glibc (Closed) Base URL: https://chromium.googlesource.com/external/naclports.git@master
Patch Set: Created 5 years, 1 month 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
« no previous file with comments | « ports/busybox/defconfig ('k') | ports/busybox/pkg_info » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 diff --git a/libbb/appletlib.c b/libbb/appletlib.c
2 --- a/libbb/appletlib.c
3 +++ b/libbb/appletlib.c
4 @@ -772,7 +772,10 @@ void FAST_FUNC run_applet_and_exit(const char *name, char * *argv)
5
6
7
8 -#if ENABLE_BUILD_LIBBUSYBOX
9 +#if defined(__native_client__)
10 +#include "ppapi_simple/ps_main.h"
11 +int nacl_ppapi_main(int argc UNUSED_PARAM, char **argv)
12 +#elif ENABLE_BUILD_LIBBUSYBOX
13 int lbb_main(char **argv)
14 #else
15 int main(int argc UNUSED_PARAM, char **argv)
16 @@ -828,3 +831,7 @@ int main(int argc UNUSED_PARAM, char **argv)
17 xfunc_die();
18 #endif
19 }
20 +
21 +#if defined(__native_client__)
22 +PPAPI_SIMPLE_REGISTER_MAIN(nacl_ppapi_main)
23 +#endif
OLDNEW
« no previous file with comments | « ports/busybox/defconfig ('k') | ports/busybox/pkg_info » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698