Browse Source

Fix get_num_procs() in the USE_TLS branch for non-glibc systems

tags/v0.3.14^2
Martin Kroeker GitHub 5 years ago
parent
commit
b0bded3f2f
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      driver/others/memory.c

+ 2
- 2
driver/others/memory.c 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)


Loading…
Cancel
Save