diff --git a/src/modules/call_out/call_out.c b/src/modules/call_out/call_out.c
index 8fa5550856b2adca71742c58828fb87910eb0fe3..4b58191748a7640e30789618afbc2e6570d8309b 100644
--- a/src/modules/call_out/call_out.c
+++ b/src/modules/call_out/call_out.c
@@ -4,7 +4,7 @@
 ||| See the files COPYING and DISCLAIMER for more information.
 \*/
 #include "global.h"
-RCSID("$Id: call_out.c,v 1.10 1997/04/23 02:00:34 hubbe Exp $");
+RCSID("$Id: call_out.c,v 1.11 1997/05/18 22:23:29 grubba Exp $");
 #include "array.h"
 #include "dynamic_buffer.h"
 #include "object.h"
@@ -23,6 +23,10 @@ RCSID("$Id: call_out.c,v 1.10 1997/04/23 02:00:34 hubbe Exp $");
 
 #include <math.h>
 
+#ifdef HAVE_SYS_TIME_H
+#include <sys/time.h>
+#endif /* HAVE_SYS_TIME_H */
+
 struct call_out_s
 {
   struct timeval tv;
diff --git a/src/modules/call_out/configure.in b/src/modules/call_out/configure.in
index 0a9bb6277064a7a46912c7b57bd7c9cee9828a0d..1f61a2b1f2160a5c900317ef3a85a3f240860756 100644
--- a/src/modules/call_out/configure.in
+++ b/src/modules/call_out/configure.in
@@ -2,6 +2,8 @@ AC_INIT(call_out.c)
 
 sinclude(../module_configure.in)
 
+AC_HAVE_HEADERS(sys/time.h)
+
 AC_OUTPUT(Makefile,echo FOO >stamp-h )