]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
htp OpenBSD: fix inline related warning
authorEric Leblond <eric@regit.org>
Fri, 11 May 2012 17:25:54 +0000 (19:25 +0200)
committerVictor Julien <victor@inliniac.net>
Wed, 16 May 2012 09:24:24 +0000 (11:24 +0200)
libhtp/configure.ac

index 192bd319021c3a23473417b761028814e9aab808..4ac482bb9b73162fb40231a98c69e47c6d121e42 100644 (file)
@@ -94,6 +94,22 @@ AC_MSG_RESULT(yes),
 AC_MSG_RESULT(no))
 LDFLAGS="${TMPLDFLAGS}"
 
+
+#check for os
+AC_MSG_CHECKING([host os])
+
+# If no host os was detected, try with uname
+if test -z "$host" ; then
+        host="`uname`"
+fi
+case "$host" in
+       *-*-openbsd*)
+                CFLAGS="${CFLAGS} -fgnu89-inline"
+       ;;
+esac
+AC_MSG_RESULT(ok)
+
+
 dnl -----------------------------------------------
 dnl forces all relocations to be resolved at run-time
 dnl -----------------------------------------------