OLD | NEW |
(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 |
OLD | NEW |