Commit 340ef004 authored by Shenghou Ma's avatar Shenghou Ma Committed by Minux Ma

runtime/cgo: guard against redefinition of PTHREAD_KEYS_MAX

Fixes #9374.

Change-Id: Ic53757eba98fc43bcd24e25e03876fef917b4da1
Reviewed-on: https://go-review.googlesource.com/1751Reviewed-by: default avatarDavid Crawshaw <crawshaw@golang.org>
parent 6ce3cd18
......@@ -12,8 +12,10 @@
// PTHREAD_KEYS_MAX has been added to sys/limits.h at head in bionic:
// https://android.googlesource.com/platform/bionic/+/master/libc/include/sys/limits.h
// TODO(crawshaw): remove this definition when a new NDK is released.
// TODO(crawshaw): remove this definition when NDK r10d is required.
#ifndef PTHREAD_KEYS_MAX
#define PTHREAD_KEYS_MAX 128
#endif
// inittls allocates a thread-local storage slot for g.
//
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment