Do not reference pthread_atfork in non-SMP_SERVER mode
This commit is contained in:
		
							parent
							
								
									57526cae99
								
							
						
					
					
						commit
						3b027d2528
					
				| 
						 | 
					@ -264,7 +264,7 @@ void openblas_fork_handler()
 | 
				
			||||||
  //   http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60035
 | 
					  //   http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60035
 | 
				
			||||||
  // In the mean time build with USE_OPENMP=0 or link against another
 | 
					  // In the mean time build with USE_OPENMP=0 or link against another
 | 
				
			||||||
  // implementation of OpenMP.
 | 
					  // implementation of OpenMP.
 | 
				
			||||||
#ifndef OS_WINDOWS
 | 
					#if !defined(OS_WINDOWS) && defined(SMP_SERVER)
 | 
				
			||||||
  int err;
 | 
					  int err;
 | 
				
			||||||
  err = pthread_atfork (BLASFUNC(blas_thread_shutdown), NULL, NULL);
 | 
					  err = pthread_atfork (BLASFUNC(blas_thread_shutdown), NULL, NULL);
 | 
				
			||||||
  if(err != 0)
 | 
					  if(err != 0)
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue