Skip to content

Commit

Permalink
Fix #1306
Browse files Browse the repository at this point in the history
  • Loading branch information
madeye committed Feb 27, 2017
1 parent e9c1116 commit 5b122d4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion configure.ac
Expand Up @@ -217,7 +217,7 @@ AC_CHECK_FUNCS([memset select setresuid setreuid strerror get_current_dir_name g
AC_CHECK_LIB(socket, connect) AC_CHECK_LIB(socket, connect)


dnl Checks for library functions. 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 Add define for libudns to enable IPv6 support
dnl This is an option defined in the origin configure script dnl This is an option defined in the origin configure script
Expand Down
4 changes: 4 additions & 0 deletions src/utils.c
Expand Up @@ -234,7 +234,11 @@ ss_align(size_t size)
{ {
int err; int err;
void *tmp; void *tmp;
#ifdef HAVE_POSIX_MEMALIGN
err = posix_memalign(&tmp, sizeof(void *), size); err = posix_memalign(&tmp, sizeof(void *), size);
#else
err = -1;
#endif
if (err) { if (err) {
return ss_malloc(size); return ss_malloc(size);
} else { } else {
Expand Down

0 comments on commit 5b122d4

Please sign in to comment.