]> granicus.if.org Git - libevent/commitdiff
should work a little bit better with solaris compiler
authorNiels Provos <provos@gmail.com>
Mon, 19 Jul 2004 06:18:10 +0000 (06:18 +0000)
committerNiels Provos <provos@gmail.com>
Mon, 19 Jul 2004 06:18:10 +0000 (06:18 +0000)
svn:r111

Makefile.am
buffer.c
configure.in

index c299567935127ef331898cf8542d91b17cc90ae5..8989b9c00403742e9df689df80d993316d5828bb 100644 (file)
@@ -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 \
index b8a9dc8561522fb8774b50dde0f891061b96ffdd..59baf3a88fdccfa0b7733d686ddd66ec69d52df8 100644 (file)
--- 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);
index 358884f15e0e5c67c7cfb5a5331d374d4ee89432..fca0a544a5608a057ca113bdfba0107ae478fabf 100644 (file)
@@ -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.