File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -854,7 +854,7 @@ OPAL_SEARCH_LIBS_CORE([ceil], [m])
854854#  -lrt might be needed for clock_gettime
855855OPAL_SEARCH_LIBS_CORE([clock_gettime], [rt])
856856
857- AC_CHECK_FUNCS([asprintf snprintf vasprintf vsnprintf openpty isatty getpwuid fork waitpid execve pipe ptsname setsid mmap tcgetpgrp posix_memalign strsignal sysconf syslog vsyslog regcmp regexec regfree _NSGetEnviron socketpair strncpy_s usleep mkfifo dbopen dbm_open statfs statvfs setpgid setenv])
857+ AC_CHECK_FUNCS([asprintf snprintf vasprintf vsnprintf openpty isatty getpwuid fork waitpid execve pipe ptsname setsid mmap tcgetpgrp posix_memalign strsignal sysconf syslog vsyslog regcmp regexec regfree _NSGetEnviron socketpair strncpy_s usleep mkfifo dbopen dbm_open statfs statvfs setpgid setenv __malloc_initialize_hook ])
858858
859859#  Sanity check: ensure that we got at least one of statfs or statvfs.
860860if  test  $ac_cv_func_statfs  = no &&  test  $ac_cv_func_statvfs  = no;  then 
Original file line number Diff line number Diff line change 9999#endif 
100100#include  "ompi/runtime/ompi_cr.h" 
101101
102+ /* newer versions of gcc have poisoned this deprecated feature */ 
103+ #if  HAVE___MALLOC_INITIALIZE_HOOK 
102104#include  "opal/mca/memory/base/base.h" 
103105/* So this sucks, but with OPAL in its own library that is brought in 
104106   implicity from libmpi, there are times when the malloc initialize 
105107   hook in the memory component doesn't work.  So we have to do it 
106108   from here, since any MPI code is going to call MPI_Init... */ 
107109OPAL_DECLSPEC  void  (* __malloc_initialize_hook ) (void ) = 
108110    opal_memory_base_malloc_init_hook ;
111+ #endif 
109112
110113/* This is required for the boundaries of the hash tables used to store 
111114 * the F90 types returned by the MPI_Type_create_f90_XXX functions. 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments