Try handle strerror_r more correct
This commit is contained in:
		@@ -311,7 +311,6 @@ case "$host_os" in
 | 
				
			|||||||
		AC_BROKEN([daemon]) ;;
 | 
							AC_BROKEN([daemon]) ;;
 | 
				
			||||||
esac
 | 
					esac
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
AC_BROKEN([					\
 | 
					AC_BROKEN([					\
 | 
				
			||||||
	chown					\
 | 
						chown					\
 | 
				
			||||||
	copyhostent				\
 | 
						copyhostent				\
 | 
				
			||||||
@@ -357,7 +356,6 @@ AC_BROKEN([					\
 | 
				
			|||||||
	strcasecmp				\
 | 
						strcasecmp				\
 | 
				
			||||||
	strdup					\
 | 
						strdup					\
 | 
				
			||||||
	strerror				\
 | 
						strerror				\
 | 
				
			||||||
	strerror_r				\
 | 
					 | 
				
			||||||
	strftime				\
 | 
						strftime				\
 | 
				
			||||||
	strlcat					\
 | 
						strlcat					\
 | 
				
			||||||
	strlcpy					\
 | 
						strlcpy					\
 | 
				
			||||||
@@ -502,6 +500,19 @@ AC_REQUIRE([rk_BROKEN_REALLOC])dnl
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
dnl AC_KRB_FUNC_GETCWD_BROKEN
 | 
					dnl AC_KRB_FUNC_GETCWD_BROKEN
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					dnl strerror_r is great fun, on linux it exists before sus catched up,
 | 
				
			||||||
 | 
					dnl so the return type is diffrent, lets check for both
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					AC_PROTO_COMPAT([
 | 
				
			||||||
 | 
					#include <stdio.h>
 | 
				
			||||||
 | 
					#include <string.h>
 | 
				
			||||||
 | 
					],
 | 
				
			||||||
 | 
					strerror_r, int strerror_r(int, char *, size_t))
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					AC_CHECK_FUNC([strerror_r],
 | 
				
			||||||
 | 
					    [AC_DEFINE_UNQUOTED(HAVE_STRERROR_R, 1,
 | 
				
			||||||
 | 
					        [Define if you have the function strerror_r.])])
 | 
				
			||||||
 | 
					
 | 
				
			||||||
dnl
 | 
					dnl
 | 
				
			||||||
dnl Checks for prototypes and declarations
 | 
					dnl Checks for prototypes and declarations
 | 
				
			||||||
dnl
 | 
					dnl
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user