--- ./package/monit/0002-sysdep_LINUX-avoid-GLOB_ONLYDIR-missin-in-libmusl.patch.orig	2017-01-13 10:56:04.777413556 +0100
+++ ./package/monit/0002-sysdep_LINUX-avoid-GLOB_ONLYDIR-missin-in-libmusl.patch	2017-01-13 10:55:21.384411938 +0100
@@ -0,0 +1,29 @@
+From de586dd21587d52001635dd6be7c70b85a24800f Mon Sep 17 00:00:00 2001
+From: Alessandro Rubini <rubini@gnudd.com>
+Date: Fri, 13 Jan 2017 10:54:09 +0100
+Subject: [PATCH] sysdep_LINUX: avoid GLOB_ONLYDIR, missin in libmusl
+
+/proc/[0-9]* is onlydir by definition, unless /proc is not  mounted,
+but this means the system is in a bad state anyways.
+
+Signed-off-by: Alessandro Rubini <rubini@gnudd.com>
+---
+ src/process/sysdep_LINUX.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/process/sysdep_LINUX.c b/src/process/sysdep_LINUX.c
+index 949d781..651ea49 100644
+--- a/src/process/sysdep_LINUX.c
++++ b/src/process/sysdep_LINUX.c
+@@ -205,7 +205,7 @@ int initprocesstree_sysdep(ProcessTree_T ** reference) {
+         ASSERT(reference);
+ 
+         /* Find all processes in the /proc directory */
+-        if ((rv = glob("/proc/[0-9]*", GLOB_ONLYDIR, NULL, &globbuf))) {
++        if ((rv = glob("/proc/[0-9]*", 0, NULL, &globbuf))) {
+                 LogError("system statistic error -- glob failed: %d (%s)\n", rv, STRERROR);
+                 return 0;
+         }
+-- 
+2.1.4
+
