summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpaul <paul>2005-11-14 14:05:35 +0000
committerpaul <paul>2005-11-14 14:05:35 +0000
commit291bf12050c445d562d4c064d7b87b11eb96f9c9 (patch)
treee7f7a7f542aaede1649870c355561a7855c53542
parentb3116c50c6b3fed988b2b07315950ffbbba37c80 (diff)
downloadquagga-291bf12050c445d562d4c064d7b87b11eb96f9c9.tar.bz2
quagga-291bf12050c445d562d4c064d7b87b11eb96f9c9.tar.xz
[bug #231] check and include stdint.h, also add std=c99 to gcc CFLAGS
2005-11-14 Paul Jakma <paul.jakma@sun.com> * configure.ac: Tell gcc we like C99. [bug #231] Check and test for stdint.h. * lib/zebra.h: [bug #231] include stdint, if its there.
-rw-r--r--ChangeLog5
-rwxr-xr-xconfigure.ac4
-rw-r--r--lib/ChangeLog1
-rw-r--r--lib/zebra.h3
4 files changed, 11 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 422ff3ca..ff493887 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2005-11-14 Paul Jakma <paul.jakma@sun.com>
+
+ * configure.ac: Tell gcc we like C99.
+ [bug #231] Check and test for stdint.h.
+
2005-11-11 Paul Jakma <paul.jakma@sun.com>
* NEWS: Update.
diff --git a/configure.ac b/configure.ac
index fdbb6655..029e6aa2 100755
--- a/configure.ac
+++ b/configure.ac
@@ -88,7 +88,7 @@ dnl ---------------------------------------------
dnl
if test "x$cflags_specified" = "x" ; then
if test "x${GCC}" = "xyes" && test "x${ICC}" = "xno"; then
- CFLAGS="-Os -fno-omit-frame-pointer -g -Wall"
+ CFLAGS="-Os -fno-omit-frame-pointer -g -std=c99 -Wall"
CFLAGS="${CFLAGS} -Wsign-compare -Wpointer-arith"
CFLAGS="${CFLAGS} -Wbad-function-cast -Wwrite-strings"
CFLAGS="${CFLAGS} -Wmissing-prototypes -Wmissing-declarations"
@@ -324,7 +324,7 @@ AC_HEADER_STDC
AC_CHECK_HEADERS([string.h stropts.h sys/conf.h sys/ksym.h sys/time.h \
sys/times.h sys/select.h sys/sysctl.h sys/sockio.h \
sys/types.h linux/version.h kvm.h netdb.h asm/types.h \
- sys/param.h libutil.h limits.h])
+ sys/param.h libutil.h limits.h stdint.h])
AC_CHECK_HEADERS([sys/socket.h netinet/in_systm.h netinet/in.h \
net/if_dl.h net/netopt.h inet/nd.h net/route.h \
diff --git a/lib/ChangeLog b/lib/ChangeLog
index b6407c4a..42934575 100644
--- a/lib/ChangeLog
+++ b/lib/ChangeLog
@@ -18,6 +18,7 @@
Keep track of number of consecutive runs, go into 'overdrive'
if queue is being flooded, we can't avoid making heavy use of
resources, better to use CPU than ever more RAM.
+ * zebra.h: [bug #231] include stdint, if its there.
2005-11-05 Paul Jakma <paul.jakma@sun.com>
diff --git a/lib/zebra.h b/lib/zebra.h
index 1739d771..0aa98a4f 100644
--- a/lib/zebra.h
+++ b/lib/zebra.h
@@ -82,6 +82,9 @@ typedef int socklen_t;
#ifdef HAVE_LIMITS_H
#include <limits.h>
#endif /* HAVE_LIMITS_H */
+#ifdef HAVE_STDINT_H
+#include <stdint.h>
+#endif /* HAVE_STDINT_H */
/* machine dependent includes */
#ifdef SUNOS_5