mirror of
https://github.com/yarrick/iodine.git
synced 2024-11-16 12:53:17 +00:00
avoid incomplete type issue
src/iodined.c: In function ‘read_dns’: src/iodined.c:2062:34: error: invalid application of ‘sizeof’ to incomplete type ‘struct in6_pktinfo’ char control[CMSG_SPACE(sizeof (struct in6_pktinfo))]; ^
This commit is contained in:
parent
5183561457
commit
29b7110bc6
|
@ -56,6 +56,10 @@ AC_PROG_CC
|
||||||
AC_PROG_CC_STDC
|
AC_PROG_CC_STDC
|
||||||
AS_IF([test "x${ac_cv_prog_cc_stdc}" = xno],
|
AS_IF([test "x${ac_cv_prog_cc_stdc}" = xno],
|
||||||
[AC_MSG_WARN([Unable to engage Standard C (C99) option])],)
|
[AC_MSG_WARN([Unable to engage Standard C (C99) option])],)
|
||||||
|
# This is to avoid
|
||||||
|
# error: invalid application of ‘sizeof’ to incomplete type ‘struct in6_pktinfo’
|
||||||
|
# whose definition is guarded by _GNU_SOURCE
|
||||||
|
AC_USE_SYSTEM_EXTENSIONS
|
||||||
AX_CFLAGS_WARN_ALL
|
AX_CFLAGS_WARN_ALL
|
||||||
AC_PROG_INSTALL
|
AC_PROG_INSTALL
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue