Signed-off-by: Daniel Golle <daniel@makrotopia.org>
--- /dev/null
+--- a/modules/ldap/ld_session.h
++++ b/modules/ldap/ld_session.h
+@@ -33,6 +33,7 @@
+ #ifndef LD_SESSION_H
+ #define LD_SESSION_H
+
++#include <sys/time.h>
+ #include <ldap.h>
+
+ #include "iniparser.h"
--- /dev/null
+--- a/utils/sercmd/sercmd.c
++++ b/utils/sercmd/sercmd.c
+@@ -43,6 +43,7 @@
+ #include <errno.h>
+ #include <ctype.h> /* isprint */
+ #include <sys/socket.h>
++#include <sys/time.h> /* struct timeval */
+ #include <sys/un.h> /* unix sock*/
+ #include <netinet/in.h> /* udp sock */
+ #include <sys/uio.h> /* writev */