1
0
mirror of https://github.com/golang/go synced 2024-11-24 01:40:12 -07:00

Always return 1 if not on linux

This commit is contained in:
Alex Eaton 2024-05-09 14:55:56 -04:00
parent 42ed330c49
commit 0144fc7df7

View File

@ -44,11 +44,15 @@ x_cgo_sys_lib_args_valid()
// in the DT_INIT_ARRAY. However, glibc always does.
// See http://www.sco.com/developers/gabi/latest/ch5.dynamic.html#init_fini
// Ignore uClibc masquerading as glibc.
#if __linux__
#if defined(__GLIBC__) && !defined(__UCLIBC__)
return 1;
#else
return 0;
#endif
#else
return 1;
#endif
}
void