From fd094e4e2402db5e031ec4a79f8c624420aa720d Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Sat, 6 Dec 2014 16:06:43 +0000 Subject: Fix missing include of sys/socket.h to find struct ucred on Linux. --- infrastructure/m4/boxbackup_tests.m4 | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'infrastructure/m4') diff --git a/infrastructure/m4/boxbackup_tests.m4 b/infrastructure/m4/boxbackup_tests.m4 index 2e5d2aa5..0f46a78c 100644 --- a/infrastructure/m4/boxbackup_tests.m4 +++ b/infrastructure/m4/boxbackup_tests.m4 @@ -235,6 +235,10 @@ AC_CHECK_MEMBERS([struct ucred.uid, struct ucred.cr_uid],,, #ifdef HAVE_SYS_UCRED_H # include #endif + + #ifdef HAVE_SYS_SOCKET_H + # include + #endif ]]) AC_CHECK_DECLS([optreset],,, [[#include ]]) -- cgit v1.2.3