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:
		
						commit
						cb429d6b12
					
				| 
						 | 
					@ -222,11 +222,11 @@ int get_num_procs(void);
 | 
				
			||||||
#else
 | 
					#else
 | 
				
			||||||
int get_num_procs(void) {
 | 
					int get_num_procs(void) {
 | 
				
			||||||
  static int nums = 0;
 | 
					  static int nums = 0;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#if defined(__GLIBC_PREREQ)
 | 
				
			||||||
  cpu_set_t cpuset,*cpusetp;
 | 
					  cpu_set_t cpuset,*cpusetp;
 | 
				
			||||||
  size_t size;
 | 
					  size_t size;
 | 
				
			||||||
  int ret;
 | 
					  int ret;
 | 
				
			||||||
 | 
					 | 
				
			||||||
#if defined(__GLIBC_PREREQ)
 | 
					 | 
				
			||||||
#if !__GLIBC_PREREQ(2, 7)
 | 
					#if !__GLIBC_PREREQ(2, 7)
 | 
				
			||||||
  int i;
 | 
					  int i;
 | 
				
			||||||
#if !__GLIBC_PREREQ(2, 6)
 | 
					#if !__GLIBC_PREREQ(2, 6)
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue