67 lines
1.5 KiB
Diff
67 lines
1.5 KiB
Diff
From 9ac712db3c9913d6e00635e120d77541dcc51b6b Mon Sep 17 00:00:00 2001
|
|
From: Doan Tran Cong Danh <congdanhqx@gmail.com>
|
|
Date: Thu, 3 Oct 2019 13:00:13 +0700
|
|
Subject: [PATCH 5/9] include limits.h for musl build
|
|
|
|
---
|
|
mesh/keyring.c | 2 +-
|
|
mesh/mesh-config-json.c | 1 +
|
|
mesh/node.c | 1 +
|
|
mesh/util.c | 1 +
|
|
4 files changed, 4 insertions(+), 1 deletion(-)
|
|
|
|
diff --git a/mesh/keyring.c b/mesh/keyring.c
|
|
index 3a7f92f9f..d5765983c 100644
|
|
--- a/mesh/keyring.c
|
|
+++ b/mesh/keyring.c
|
|
@@ -24,9 +24,9 @@
|
|
#define _GNU_SOURCE
|
|
#include <fcntl.h>
|
|
#include <dirent.h>
|
|
+#include <limits.h>
|
|
#include <stdio.h>
|
|
#include <unistd.h>
|
|
-#include <dirent.h>
|
|
|
|
#include <sys/stat.h>
|
|
|
|
diff --git a/mesh/mesh-config-json.c b/mesh/mesh-config-json.c
|
|
index cafa2fdd7..74ca49590 100644
|
|
--- a/mesh/mesh-config-json.c
|
|
+++ b/mesh/mesh-config-json.c
|
|
@@ -27,6 +27,7 @@
|
|
#include <fcntl.h>
|
|
#include <ftw.h>
|
|
#include <libgen.h>
|
|
+#include <limits.h>
|
|
#include <stdio.h>
|
|
#include <string.h>
|
|
#include <unistd.h>
|
|
diff --git a/mesh/node.c b/mesh/node.c
|
|
index b6824f505..15dcb977f 100644
|
|
--- a/mesh/node.c
|
|
+++ b/mesh/node.c
|
|
@@ -23,6 +23,7 @@
|
|
|
|
#define _GNU_SOURCE
|
|
#include <dirent.h>
|
|
+#include <limits.h>
|
|
#include <stdio.h>
|
|
#include <sys/time.h>
|
|
|
|
diff --git a/mesh/util.c b/mesh/util.c
|
|
index 1455bdec3..e441a2ed8 100644
|
|
--- a/mesh/util.c
|
|
+++ b/mesh/util.c
|
|
@@ -24,6 +24,7 @@
|
|
#define _GNU_SOURCE
|
|
#include <dirent.h>
|
|
#include <ftw.h>
|
|
+#include <limits.h>
|
|
#include <stdio.h>
|
|
#include <time.h>
|
|
#include <sys/time.h>
|
|
--
|
|
2.23.0
|
|
|