File tree Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -409,6 +409,7 @@ cmake_push_check_state(RESET)
409409cmake_pop_check_state()
410410
411411check_symbol_exists(pthread_stackseg_np pthread.h HAVE_PTHREAD_STACKSEG_NP)
412+ check_symbol_exists(strnlen string .h HAVE_STRNLEN)
412413
413414# Check for sigsetjmp(). It can be a function or defined as a macro. Note, that 
414415# POSIX.1-2001-compliant systems should have it. On Windows the setjmp() is 
Original file line number Diff line number Diff line change 6565/* Define if you have 'strerror_r'. */ 
6666#cmakedefine  HAVE_STRERROR_R 1
6767
68+ /* Define to 1 if you have the 'strnlen' function. */ 
69+ #cmakedefine  HAVE_STRNLEN 1
70+ 
6871/* Define to 1 if strerror_r returns char *. */ 
6972#cmakedefine  STRERROR_R_CHAR_P 1
7073
Original file line number Diff line number Diff line change @@ -358,7 +358,6 @@ endblock()
358358check_symbol_exists(statvfs sys/statvfs.h HAVE_STATVFS)
359359check_symbol_exists(std_syslog sys/syslog.h HAVE_STD_SYSLOG)
360360check_symbol_exists(strcasecmp strings .h HAVE_STRCASECMP)
361- check_symbol_exists(strnlen string .h HAVE_STRNLEN)
362361check_symbol_exists(symlink unistd.h HAVE_SYMLINK)
363362check_symbol_exists(tzset time.h HAVE_TZSET)
364363check_symbol_exists(unsetenv stdlib.h HAVE_UNSETENV)
Original file line number Diff line number Diff line change 358358/* Define to 1 if you have the 'strndup' function. */ 
359359#cmakedefine  HAVE_STRNDUP 1
360360
361- /* Define to 1 if you have the 'strnlen' function. */ 
362- #cmakedefine  HAVE_STRNLEN 1
363- 
364361/* Define to 1 if you have the 'strtok_r' function. */ 
365362#cmakedefine  HAVE_STRTOK_R 1
366363
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments