Skip to content

Commit

Permalink
Fix b64_ntop -lresolv detection for -fsanitize=address
Browse files Browse the repository at this point in the history
Found by: michaelortmann
Patch by: michaelortmann
  • Loading branch information
michaelortmann authored Feb 18, 2024
1 parent 488f07b commit 36be9cd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions aclocal.m4
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ AC_DEFUN([EGG_FUNC_B64_NTOP],
# Check for b64_ntop. If we have b64_ntop, we assume b64_pton as well.
AC_MSG_CHECKING(for b64_ntop)
AC_LINK_IFELSE([AC_LANG_PROGRAM([[
AC_RUN_IFELSE([AC_LANG_PROGRAM([[
#include <sys/types.h>
#include <netinet/in.h>
#include <resolv.h>
Expand All @@ -328,7 +328,7 @@ AC_DEFUN([EGG_FUNC_B64_NTOP],
AC_MSG_CHECKING(for b64_ntop with -lresolv)
OLD_LIBS="$LIBS"
LIBS="$LIBS -lresolv"
AC_LINK_IFELSE([AC_LANG_PROGRAM([[
AC_RUN_IFELSE([AC_LANG_PROGRAM([[
#include <sys/types.h>
#include <netinet/in.h>
#include <resolv.h>
Expand All @@ -341,7 +341,7 @@ AC_DEFUN([EGG_FUNC_B64_NTOP],
AC_MSG_CHECKING(for b64_ntop with -lnetwork)
OLD_LIBS="$LIBS"
LIBS="-lnetwork"
AC_LINK_IFELSE([AC_LANG_PROGRAM([[
AC_RUN_IFELSE([AC_LANG_PROGRAM([[
#include <sys/types.h>
#include <netinet/in.h>
#include <resolv.h>
Expand Down

0 comments on commit 36be9cd

Please sign in to comment.