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

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

Issue 1892223002: New port: gnutls (Closed) Base URL: https://chromium.googlesource.com/webports.git@nettle
Patch Set: simplify nacl.patch Created 4 years, 8 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
« no previous file with comments | « ports/gnutls/build.sh ('k') | ports/gnutls/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/lib/gnutls_global.c b/lib/gnutls_global.c
2 index 9bda352..8756daf 100644
3 --- a/lib/gnutls_global.c
4 +++ b/lib/gnutls_global.c
5 @@ -54,7 +54,15 @@
6 int __attribute__((weak)) _gnutls_global_init_skip(void);
7 int _gnutls_global_init_skip(void)
8 {
9 +#ifdef __native_client__
10 + /* _gnutls_rnd_init() will fail if nacl_io_init() or
11 + * nacl_io_init_ppapi() has not run yet. Only the app can invoke
12 + * the latter function (and only one can be called).
13 + */
14 + return 1;
15 +#else
16 return 0;
17 +#endif
18 }
19
20 /* created by asn1c */
21 diff --git a/lib/x509/verify-high2.c b/lib/x509/verify-high2.c
22 index 558fa89..902f55c 100644
23 --- a/lib/x509/verify-high2.c
24 +++ b/lib/x509/verify-high2.c
25 @@ -37,8 +37,8 @@
26
27 #include <dirent.h>
28
29 -#ifndef _DIRENT_HAVE_D_TYPE
30 +#if !defined(_DIRENT_HAVE_D_TYPE) && !defined(__native_client__)
31 # ifdef DT_UNKNOWN
32 # define _DIRENT_HAVE_D_TYPE
33 # endif
34 #endif
OLDNEW
« no previous file with comments | « ports/gnutls/build.sh ('k') | ports/gnutls/pkg_info » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698