collect: fix to build with glibc 2.25

Fix to build with glibc 2.25 and remove from blacklist.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
This commit is contained in:
Qi.Chen@windriver.com
2017-02-24 14:40:42 +08:00
committed by Martin Jansa
parent 545b16a983
commit 45e1eeb4ba
2 changed files with 25 additions and 2 deletions
@@ -0,0 +1,24 @@
Subject: fix to build with glibc 2.25
Upstream-Status: Pending
Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
---
src/md.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/md.c b/src/md.c
index 3725f9a..202225b 100644
--- a/src/md.c
+++ b/src/md.c
@@ -25,6 +25,7 @@
#include "utils_ignorelist.h"
#include <sys/ioctl.h>
+#include <sys/sysmacros.h>
#include <linux/major.h>
#include <linux/raid/md_u.h>
--
2.8.3
@@ -14,6 +14,7 @@ SRC_URI = "http://collectd.org/files/collectd-${PV}.tar.bz2 \
file://0001-conditionally-check-libvirt.patch \
file://0001-collectd-replace-deprecated-readdir_r-with-readdir.patch \
file://CVE-2016-6254.patch \
file://0001-fix-to-build-with-glibc-2.25.patch \
"
SRC_URI[md5sum] = "c39305ef5514b44238b0d31f77e29e6a"
SRC_URI[sha256sum] = "847684cf5c10de1dc34145078af3fcf6e0d168ba98c14f1343b1062a4b569e88"
@@ -86,5 +87,3 @@ INITSCRIPT_PARAMS = "defaults"
# threshold.so load.so are also provided by gegl
# disk.so is also provided by libgphoto2-camlibs
PRIVATE_LIBS = "threshold.so load.so disk.so"
PNBLACKLIST[collectd] ?= "Fails to build with RSS http://errors.yoctoproject.org/Errors/Details/130654/"