Skip to content
Permalink
Browse files

Fix #1306

  • Loading branch information...
madeye committed Feb 27, 2017
1 parent e9c1116 commit 5b122d4f8ce02dfea0848fe7e0fff43ccf0d69ff
Showing with 5 additions and 1 deletion.
  1. +1 −1 configure.ac
  2. +4 −0 src/utils.c
@@ -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
@@ -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 {

0 comments on commit 5b122d4

Please sign in to comment.
You can’t perform that action at this time.