Temporarily gate new Fuchsia APIs on CHROMIUM_ROLLING_MAGENTA_TO_ZIRCON.

This is to keep Chromium building.

Bug: chromium:765754
Change-Id: I312f747e27e53590a948305f80abc240bfd2063c
Reviewed-on: https://boringssl-review.googlesource.com/20344
Reviewed-by: Aaron Green <aarongreen@google.com>
Reviewed-by: David Benjamin <davidben@google.com>
Commit-Queue: David Benjamin <davidben@google.com>
This commit is contained in:
David Benjamin 2017-09-15 14:54:02 -04:00
parent 36d59479a5
commit f51f273ee8

View File

@ -19,7 +19,16 @@
#include <limits.h>
#include <stdlib.h>
// TODO(davidben): Remove this once https://crbug.com/765754 is resolved.
#if defined(CHROMIUM_ROLLING_MAGENTA_TO_ZIRCON)
#include <zircon/syscalls.h>
#else
#include <magenta/syscalls.h>
#define ZX_CPRNG_DRAW_MAX_LEN MX_CPRNG_DRAW_MAX_LEN
#define ZX_OK MX_OK
#define zx_status_t mx_status_t
#define zx_cprng_draw mx_cprng_draw
#endif
#include "../fipsmodule/rand/internal.h"