kamailio-4.x: fix build with musl
authorDaniel Golle <daniel@makrotopia.org>
Wed, 24 Jun 2015 13:02:46 +0000 (15:02 +0200)
committerDaniel Golle <daniel@makrotopia.org>
Wed, 24 Jun 2015 13:03:37 +0000 (15:03 +0200)
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
net/kamailio-4.x/patches/110-include-sys-time-h-in-ld_session-h.patch [new file with mode: 0644]
net/kamailio-4.x/patches/111-include-sys-time-h-in-sercmd-c.patch [new file with mode: 0644]

diff --git a/net/kamailio-4.x/patches/110-include-sys-time-h-in-ld_session-h.patch b/net/kamailio-4.x/patches/110-include-sys-time-h-in-ld_session-h.patch
new file mode 100644 (file)
index 0000000..2dab8d1
--- /dev/null
@@ -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"
diff --git a/net/kamailio-4.x/patches/111-include-sys-time-h-in-sercmd-c.patch b/net/kamailio-4.x/patches/111-include-sys-time-h-in-sercmd-c.patch
new file mode 100644 (file)
index 0000000..c4e4487
--- /dev/null
@@ -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 */