130 lines
2.7 KiB
Diff
130 lines
2.7 KiB
Diff
From 2a2eb634d481ab4eed0a444321dc12338de96d6a 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/9] 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 6c65454c1..a455c83b6 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 cebdffe45..e1689c6d7 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 <linux/if_alg.h>
|
|
diff --git a/mesh/friend.c b/mesh/friend.c
|
|
index da2772870..ee48a3cc7 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 501ec10fe..6b6219c56 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 b660a7ef2..3ea8b2cb4 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/net.c b/mesh/net.c
|
|
index 2785039db..740e3c3af 100644
|
|
--- a/mesh/net.c
|
|
+++ b/mesh/net.c
|
|
@@ -22,7 +22,7 @@
|
|
#endif
|
|
|
|
#define _GNU_SOURCE
|
|
-
|
|
+#include <sys/time.h>
|
|
#include <ell/ell.h>
|
|
|
|
#include "mesh/mesh-defs.h"
|
|
diff --git a/mesh/pb-adv.c b/mesh/pb-adv.c
|
|
index 6b4a70052..481f4ac8d 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 57eb1e750..50989b217 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 eb59f53f1..65cf194e6 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
|
|
|