Skip to content

Commit b0bded3

Browse files
authored
Fix get_num_procs() in the USE_TLS branch for non-glibc systems
1 parent 8189a98 commit b0bded3

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)