This commit is contained in:
Max Lv
2017-03-16 13:06:08 +08:00
parent 9e3b5528b4
commit 71ff3cff1d
2 changed files with 5 additions and 1 deletions
+1 -1
View File
@@ -217,7 +217,7 @@ AC_CHECK_FUNCS([memset select setresuid setreuid strerror get_current_dir_name g
AC_CHECK_LIB(socket, connect)
dnl Checks for library functions.
AC_CHECK_FUNCS([malloc memset socket])
AC_CHECK_FUNCS([malloc memset posix_memalign socket])
dnl Add define for libudns to enable IPv6 support
dnl This is an option defined in the origin configure script
+4
View File
@@ -234,7 +234,11 @@ ss_align(size_t size)
{
int err;
void *tmp;
#ifdef HAVE_POSIX_MEMALIGN
err = posix_memalign(&tmp, sizeof(void *), size);
#else
err = -1;
#endif
if (err) {
return ss_malloc(size);
} else {