Skip to content

Commit

Permalink
avoid incomplete type issue
Browse files Browse the repository at this point in the history
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))];
                                  ^
  • Loading branch information
barak committed Dec 28, 2016
1 parent 5183561 commit 29b7110
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 29b7110

Please # to comment.