Skip to content

Commit

Permalink
Fix detection of sockaddr_conn.sconn_len when srcdir != objdir. (#701)
Browse files Browse the repository at this point in the history
  • Loading branch information
JonathanLennox committed Apr 17, 2024
1 parent 5335d22 commit c4b52c3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -179,9 +179,12 @@ AC_CHECK_MEMBER(struct sockaddr_in6.sin6_len,
#endif
#include <netinet/in.h>])

x_save_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS -I$srcdir"
AC_CHECK_MEMBER(struct sockaddr_conn.sconn_len,
AC_DEFINE(HAVE_SCONN_LEN, 1, [Define this if your userland stack has sconn_len in sockaddr_conn struct.]),,
[#include "usrsctplib/usrsctp.h"])
CFLAGS="$x_save_CFLAGS"

AC_MSG_CHECKING(for socklen_t)
AC_TRY_COMPILE([#ifdef HAVE_SYS_TYPES_H
Expand Down

0 comments on commit c4b52c3

Please sign in to comment.