]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
configure: Fixed checking for struct sockpeercred with OpenBSD <5.3
authorTimo Sirainen <tss@iki.fi>
Tue, 14 May 2013 11:14:16 +0000 (14:14 +0300)
committerTimo Sirainen <tss@iki.fi>
Tue, 14 May 2013 11:14:16 +0000 (14:14 +0300)
configure.ac

index a67d51197eef67e7180657df7c7a0986ee96b9ce..b9c1ce5f037b746ebc472bb56631be08f15e895a 100644 (file)
@@ -433,7 +433,10 @@ AC_CHECK_FUNCS(fcntl flock lockf inet_aton sigaction getpagesize madvise \
               walkcontext dirfd clearenv malloc_usable_size glob fallocate \
               posix_fadvise getpeereid getpeerucred)
 
-AC_CHECK_TYPES([struct sockpeercred],,,[#include <sys/socket.h>])
+AC_CHECK_TYPES([struct sockpeercred],,,[
+#include <sys/types.h>
+#include <sys/socket.h>
+])
 
 AC_SEARCH_LIBS(clock_gettime, rt, [
   AC_DEFINE(HAVE_CLOCK_GETTIME,, Define if you have the clock_gettime function)