117 lines
2.5 KiB
Diff
117 lines
2.5 KiB
Diff
From 1370cc9a32f8979158a894c3de75bcb3c29af03a Mon Sep 17 00:00:00 2001
|
|
From: Doan Tran Cong Danh <congdanhqx@gmail.com>
|
|
Date: Thu, 3 Oct 2019 12:59:56 +0700
|
|
Subject: [PATCH 4/8] include sys/time.h for musl build
|
|
|
|
---
|
|
mesh/appkey.c | 1 +
|
|
mesh/crypto.c | 1 +
|
|
mesh/friend.c | 1 +
|
|
mesh/manager.c | 1 +
|
|
mesh/mesh.c | 1 +
|
|
mesh/net.c | 2 +-
|
|
mesh/pb-adv.c | 1 +
|
|
mesh/prov-acceptor.c | 1 +
|
|
mesh/prov-initiator.c | 1 +
|
|
9 files changed, 9 insertions(+), 1 deletion(-)
|
|
|
|
diff --git a/mesh/appkey.c b/mesh/appkey.c
|
|
index 45d604007..b570bff9d 100644
|
|
--- a/mesh/appkey.c
|
|
+++ b/mesh/appkey.c
|
|
@@ -22,6 +22,7 @@
|
|
#endif
|
|
|
|
#define _GNU_SOURCE
|
|
+#include <sys/time.h>
|
|
#include <ell/ell.h>
|
|
|
|
#include "mesh/mesh-defs.h"
|
|
diff --git a/mesh/crypto.c b/mesh/crypto.c
|
|
index 596a289f9..3ecdb564c 100644
|
|
--- a/mesh/crypto.c
|
|
+++ b/mesh/crypto.c
|
|
@@ -24,6 +24,7 @@
|
|
#define _GNU_SOURCE
|
|
#include <unistd.h>
|
|
#include <sys/socket.h>
|
|
+#include <sys/time.h>
|
|
#include <ell/ell.h>
|
|
|
|
#include "mesh/mesh-defs.h"
|
|
diff --git a/mesh/friend.c b/mesh/friend.c
|
|
index 5f5f6f823..a5bab6929 100644
|
|
--- a/mesh/friend.c
|
|
+++ b/mesh/friend.c
|
|
@@ -21,6 +21,7 @@
|
|
#include <config.h>
|
|
#endif
|
|
|
|
+#include <sys/time.h>
|
|
#include <ell/ell.h>
|
|
|
|
#include "mesh/mesh-defs.h"
|
|
diff --git a/mesh/manager.c b/mesh/manager.c
|
|
index e4a7deaeb..e5837ed48 100644
|
|
--- a/mesh/manager.c
|
|
+++ b/mesh/manager.c
|
|
@@ -22,6 +22,7 @@
|
|
#endif
|
|
|
|
#define _GNU_SOURCE
|
|
+#include <sys/time.h>
|
|
#include <ell/ell.h>
|
|
|
|
#include "mesh/mesh-defs.h"
|
|
diff --git a/mesh/mesh.c b/mesh/mesh.c
|
|
index 6d2f86b6d..1eef01eee 100644
|
|
--- a/mesh/mesh.c
|
|
+++ b/mesh/mesh.c
|
|
@@ -22,6 +22,7 @@
|
|
#endif
|
|
|
|
#define _GNU_SOURCE
|
|
+#include <sys/time.h>
|
|
#include <ell/ell.h>
|
|
|
|
#include "mesh/mesh-io.h"
|
|
diff --git a/mesh/pb-adv.c b/mesh/pb-adv.c
|
|
index 6ef45b8b0..797ff9da7 100644
|
|
--- a/mesh/pb-adv.c
|
|
+++ b/mesh/pb-adv.c
|
|
@@ -21,6 +21,7 @@
|
|
#include <config.h>
|
|
#endif
|
|
|
|
+#include <sys/time.h>
|
|
#include <ell/ell.h>
|
|
|
|
#include "mesh/mesh-defs.h"
|
|
diff --git a/mesh/prov-acceptor.c b/mesh/prov-acceptor.c
|
|
index 03972c227..1b38f1bdd 100644
|
|
--- a/mesh/prov-acceptor.c
|
|
+++ b/mesh/prov-acceptor.c
|
|
@@ -21,6 +21,7 @@
|
|
#include <config.h>
|
|
#endif
|
|
|
|
+#include <sys/time.h>
|
|
#include <ell/ell.h>
|
|
|
|
#include "src/shared/ecc.h"
|
|
diff --git a/mesh/prov-initiator.c b/mesh/prov-initiator.c
|
|
index 7a767cfb3..c9ffea45d 100644
|
|
--- a/mesh/prov-initiator.c
|
|
+++ b/mesh/prov-initiator.c
|
|
@@ -21,6 +21,7 @@
|
|
#include <config.h>
|
|
#endif
|
|
|
|
+#include <sys/time.h>
|
|
#include <ell/ell.h>
|
|
|
|
#include "src/shared/ecc.h"
|
|
--
|
|
2.23.0
|
|
|