kamailio-4.x: fix build with musl

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
This commit is contained in:
Daniel Golle 2015-06-24 15:02:46 +02:00 committed by Zoltan HERPAI
parent 5736cb7c59
commit f33a4041c9
2 changed files with 20 additions and 0 deletions

View file

@ -0,0 +1,10 @@
--- 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"

View file

@ -0,0 +1,10 @@
--- 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 */