From 29b7110bc62fc7360ccaa010ba91f479b05264de Mon Sep 17 00:00:00 2001 From: "Barak A. Pearlmutter" Date: Wed, 28 Dec 2016 12:01:30 +0100 Subject: [PATCH] avoid incomplete type issue MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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))]; ^ --- configure.ac | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/configure.ac b/configure.ac index 3d241b0..ef194d9 100644 --- a/configure.ac +++ b/configure.ac @@ -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