diff options
author | David Benjamin <davidben@chromium.org> | 2015-04-20 18:32:12 +0300 |
---|---|---|
committer | Adam Langley <agl@google.com> | 2015-04-20 19:50:18 +0300 |
commit | f0df86a1f62655528cd123e0d7867e3b9dc80c61 (patch) | |
tree | 7ee03ea44fd0beefc20243407ec03cc809446df2 /tool | |
parent | caf6b095987f88d8ae699273eded66dd3dd7bcf9 (diff) |
Fix standalone build on Mac.
CRYPTO_MUTEX was the wrong size. Fortunately, Apple was kind enough to define
pthread_rwlock_t unconditionally, so we can be spared fighting with feature
macros. Some of the stdlib.h removals were wrong and clang is pick about
multiply-defined typedefs. Apparently that's a C11 thing?
BUG=478598
Change-Id: Ibdcb8de9e5d83ca28e4c55b2979177d1ef0f9721
Reviewed-on: https://boringssl-review.googlesource.com/4404
Reviewed-by: Adam Langley <agl@google.com>
Diffstat (limited to 'tool')
-rw-r--r-- | tool/rand.cc | 1 | ||||
-rw-r--r-- | tool/transport_common.cc | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/tool/rand.cc b/tool/rand.cc index ea97bfa4..10078e22 100644 --- a/tool/rand.cc +++ b/tool/rand.cc @@ -16,6 +16,7 @@ #include <vector> #include <stdint.h> +#include <stdlib.h> #include <openssl/rand.h> diff --git a/tool/transport_common.cc b/tool/transport_common.cc index ac4dfe1f..3f5e631b 100644 --- a/tool/transport_common.cc +++ b/tool/transport_common.cc @@ -19,6 +19,7 @@ #include <errno.h> #include <stddef.h> +#include <stdlib.h> #include <string.h> #include <sys/types.h> |