1
0
mirror of https://github.com/yarrick/iodine.git synced 2024-12-01 17:36:10 +03: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:
Barak A. Pearlmutter 2016-12-28 12:01:30 +01:00
parent 5183561457
commit 29b7110bc6

View File

@ -56,6 +56,10 @@ AC_PROG_CC
AC_PROG_CC_STDC
AS_IF([test "x${ac_cv_prog_cc_stdc}" = xno],
[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
AC_PROG_INSTALL