summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
a7911e3)
If gai_strerror() isn't available, use a macro that simply returns
a static error message (regardless of the real error code).
For example, GNU libc 2.0.7 doesn't implement gai_strerror().
AC_CHECK_FUNCS([ \
bind gethostbyaddr gethostbyname gethostname inet_ntoa \
AC_CHECK_FUNCS([ \
bind gethostbyaddr gethostbyname gethostname inet_ntoa \
- setsid setsockopt socket strcasecmp waitpid],,AC_MSG_ERROR([required function missing!]))
+ setsid setsockopt socket strcasecmp waitpid],,
+ AC_MSG_ERROR([required function missing!]))
-AC_CHECK_FUNCS(getaddrinfo getnameinfo inet_aton sigaction sigprocmask snprintf \
- vsnprintf strdup strlcpy strlcat strtok_r)
+AC_CHECK_FUNCS([ \
+ gai_strerror getaddrinfo getnameinfo inet_aton sigaction \
+ sigprocmask snprintf vsnprintf strdup strlcpy strlcat strtok_r])
# -- Configuration options --
# -- Configuration options --
extern int vsnprintf PARAMS(( char *str, size_t count, const char *fmt, va_list args ));
#endif
extern int vsnprintf PARAMS(( char *str, size_t count, const char *fmt, va_list args ));
#endif
+#ifndef HAVE_GAI_STRERROR
+#define gai_strerror(r) "unknown error"
+#endif
+
#ifndef PACKAGE_NAME
#define PACKAGE_NAME PACKAGE
#endif
#ifndef PACKAGE_NAME
#define PACKAGE_NAME PACKAGE
#endif