Skip to content

Commit cb429d6

Browse files
authored
Merge pull request #3110 from martin-frbg/issue3108
Fix get_num_procs() in the USE_TLS branch for non-glibc systems
2 parents f9aaf22 + b0bded3 commit cb429d6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

driver/others/memory.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -222,11 +222,11 @@ int get_num_procs(void);
222222
#else
223223
int get_num_procs(void) {
224224
static int nums = 0;
225+
226+
#if defined(__GLIBC_PREREQ)
225227
cpu_set_t cpuset,*cpusetp;
226228
size_t size;
227229
int ret;
228-
229-
#if defined(__GLIBC_PREREQ)
230230
#if !__GLIBC_PREREQ(2, 7)
231231
int i;
232232
#if !__GLIBC_PREREQ(2, 6)

0 commit comments

Comments
 (0)