Merge pull request #3110 from martin-frbg/issue3108

Fix get_num_procs()  in the USE_TLS branch for non-glibc systems
This commit is contained in:
Martin Kroeker 2021-02-18 15:45:25 +01:00 committed by GitHub
commit cb429d6b12
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -222,11 +222,11 @@ int get_num_procs(void);
#else
int get_num_procs(void) {
static int nums = 0;
#if defined(__GLIBC_PREREQ)
cpu_set_t cpuset,*cpusetp;
size_t size;
int ret;
#if defined(__GLIBC_PREREQ)
#if !__GLIBC_PREREQ(2, 7)
int i;
#if !__GLIBC_PREREQ(2, 6)