force c99 mode when using dns.c

SVN revision: 71790
This commit is contained in:
Mike Blumenkrantz 2012-06-07 10:27:18 +00:00
parent e1578910bd
commit 5dc9809f66
2 changed files with 5 additions and 1 deletions

View File

@ -1527,6 +1527,10 @@ if test "x${have_ecore_con}" = "xyes" ; then
fi
AM_CONDITIONAL([HAVE_CARES], [test "x${have_cares}" = "xyes"])
if test "x${have_cares}" != "xyes" ; then
C99="$ac_cv_prog_cc_c99"
AC_SUBST(C99)
fi
# ecore_ipc
ECORE_CHECK_MODULE([ipc], [${want_ecore_ipc}], [Ipc], [${have_ecore_con}],

View File

@ -35,7 +35,7 @@ if HAVE_CARES
libecore_con_la_SOURCES += ecore_con_ares.c
else
if HAVE_IPV6
AM_CPPFLAGS += -Wno-override-init
AM_CPPFLAGS += -Wno-override-init $(C99)
libecore_con_la_SOURCES += ecore_con_dns.c dns.c dns.h
else
libecore_con_la_SOURCES += ecore_con_info.c