We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 411ba0a commit bccd686Copy full SHA for bccd686
src/runtime/cgo/gcc_stack_unix.c
@@ -21,7 +21,7 @@ x_cgo_getstackbound(uintptr bounds[2])
21
// Needed before pthread_getattr_np, too, since before glibc 2.32
22
// it did not call pthread_attr_init in all cases (see #65625).
23
pthread_attr_init(&attr);
24
-#if defined(__GLIBC__) || (defined(__sun) && !defined(__illumos__))
+#if defined(__GLIBC__) || defined(__BIONIC__) || (defined(__sun) && !defined(__illumos__))
25
// pthread_getattr_np is a GNU extension supported in glibc.
26
// Solaris is not glibc but does support pthread_getattr_np
27
// (and the fallback doesn't work...). Illumos does not.
0 commit comments