|
|
|
@ -27,24 +27,6 @@ |
|
|
|
|
# include "config.h" |
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
#undef alloca |
|
|
|
|
#ifdef HAVE_ALLOCA_H |
|
|
|
|
# include <alloca.h> |
|
|
|
|
#elif defined __GNUC__ |
|
|
|
|
# define alloca __builtin_alloca |
|
|
|
|
#elif defined _AIX |
|
|
|
|
# define alloca __alloca |
|
|
|
|
#elif defined _MSC_VER |
|
|
|
|
# include <malloc.h> |
|
|
|
|
# define alloca _alloca |
|
|
|
|
#else |
|
|
|
|
# include <stddef.h> |
|
|
|
|
# ifdef __cplusplus |
|
|
|
|
extern "C" |
|
|
|
|
# endif |
|
|
|
|
void *alloca (size_t); |
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
#if !defined(__FreeBSD__) |
|
|
|
|
#ifndef _XOPEN_SOURCE |
|
|
|
|
#define _XOPEN_SOURCE 600 |
|
|
|
@ -696,7 +678,7 @@ size_t dns_strlcat(char *dst, const char *src, size_t lim) { |
|
|
|
|
} /* dns_strlcat() */ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#if defined(_WIN32) || defined(__SUNPRO_C) |
|
|
|
|
#if _WIN32 |
|
|
|
|
|
|
|
|
|
static char *dns_strsep(char **sp, const char *delim) { |
|
|
|
|
char *p; |
|
|
|
|