Skip to content

Commit 71129e0

Browse files
committed
Do not check for main() in libminiupnpc
main() { main(); } causes "infinite recursion" compilation warning which with -Werror fails the check.
1 parent 8c632f7 commit 71129e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

configure.ac

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -771,7 +771,7 @@ dnl Check for libminiupnpc (optional)
771771
if test x$use_upnp != xno; then
772772
AC_CHECK_HEADERS(
773773
[miniupnpc/miniwget.h miniupnpc/miniupnpc.h miniupnpc/upnpcommands.h miniupnpc/upnperrors.h],
774-
[AC_CHECK_LIB([miniupnpc], [main],[MINIUPNPC_LIBS=-lminiupnpc], [have_miniupnpc=no])],
774+
[AC_CHECK_LIB([miniupnpc], [upnpDiscover], [MINIUPNPC_LIBS=-lminiupnpc], [have_miniupnpc=no])],
775775
[have_miniupnpc=no]
776776
)
777777
fi

0 commit comments

Comments
 (0)