From 6db3da27e2ef340b7547db2be0c0559d410575c2 Mon Sep 17 00:00:00 2001 From: Niels Provos Date: Mon, 19 Jul 2004 06:18:10 +0000 Subject: [PATCH] should work a little bit better with solaris compiler svn:r111 --- Makefile.am | 1 - buffer.c | 2 +- configure.in | 8 ++++++++ 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/Makefile.am b/Makefile.am index c2995679..8989b9c0 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,6 +1,5 @@ AUTOMAKE_OPTIONS = foreign no-dependencies -CFLAGS = -Wall @CFLAGS@ SUBDIRS = . sample test EXTRA_DIST = acconfig.h err.c event.h evsignal.h event.3 kqueue.c \ diff --git a/buffer.c b/buffer.c index b8a9dc85..59baf3a8 100644 --- a/buffer.c +++ b/buffer.c @@ -174,7 +174,7 @@ evbuffer_remove(struct evbuffer *buf, void *data, size_t datlen) /* Adds data to an event buffer */ -static __inline void +static inline void evbuffer_align(struct evbuffer *buf) { memmove(buf->orig_buffer, buf->buffer, buf->off); diff --git a/configure.in b/configure.in index 358884f1..fca0a544 100644 --- a/configure.in +++ b/configure.in @@ -17,6 +17,12 @@ AC_PROG_RANLIB AC_PROG_INSTALL AC_PROG_LN_S +AC_PROG_GCC_TRADITIONAL +if test "$GCC" = yes ; then + CFLAGS="$CFLAGS -Wall" +fi + + dnl Check for optional stuff AC_ARG_WITH(rtsig, [ --with-rtsig compile with support for real time signals (experimental)], @@ -58,6 +64,8 @@ if test "x$ac_cv_header_sys_time_h" = "xyes"; then fi dnl Checks for typedefs, structures, and compiler characteristics. +AC_C_CONST +AC_C_INLINE AC_HEADER_TIME dnl Checks for library functions. -- 2.50.1