summaryrefslogtreecommitdiffstats
path: root/package/libnfs/0002-libnfs.c-include-time.h-in-libnfs.c.patch
diff options
context:
space:
mode:
authorJörg Krause <joerg.krause@embedded.rocks>2018-11-05 18:11:41 +0100
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>2018-11-29 22:34:25 +0100
commitd6bd004a0b518d5e49cc65e71eb33e9235b6458a (patch)
tree1a13792cd3e4053fd7616bcfd6bec7e36d91e0f2 /package/libnfs/0002-libnfs.c-include-time.h-in-libnfs.c.patch
parent630a87907fa580f668d7159a5e84398419d6b3fd (diff)
downloadbuildroot-d6bd004a0b518d5e49cc65e71eb33e9235b6458a.tar.gz
buildroot-d6bd004a0b518d5e49cc65e71eb33e9235b6458a.zip
package/libnfs: bump to version 3.0.0
Also add an patch from upstream to fix building libnfs with the musl C library. This issue was introduced upstream between version 2.0.0 and version 3.0.0. Note, that upstreams commit message says it fixes a warning. However, as musl is more strictly regarding missing headers it actually fixes the build with musl. Furthermore, the COPYING license file was changed in the way that it now includes a clarification about the .x files being distributed under the simplified BSD license. We already note in LIBNFS_LICENSE that the .x files are BSD-2-Clause. So, updating the hash for this license file is enough. Signed-off-by: Jörg Krause <joerg.krause@embedded.rocks> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Diffstat (limited to 'package/libnfs/0002-libnfs.c-include-time.h-in-libnfs.c.patch')
-rw-r--r--package/libnfs/0002-libnfs.c-include-time.h-in-libnfs.c.patch35
1 files changed, 35 insertions, 0 deletions
diff --git a/package/libnfs/0002-libnfs.c-include-time.h-in-libnfs.c.patch b/package/libnfs/0002-libnfs.c-include-time.h-in-libnfs.c.patch
new file mode 100644
index 0000000000..34e584017e
--- /dev/null
+++ b/package/libnfs/0002-libnfs.c-include-time.h-in-libnfs.c.patch
@@ -0,0 +1,35 @@
+From b56bd3d99f67a3273fec3c0c5d9560413465a1db Mon Sep 17 00:00:00 2001
+From: Anna Lyons <Anna.Lyons@data61.csiro.au>
+Date: Thu, 12 Jul 2018 17:45:23 +1000
+Subject: [PATCH] libnfs.c: include <time.h> in libnfs.c
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+time() is used in this file, which is from time.h. Fixes a warning.
+
+Note, that building with musl breaks otherwise, as it is more strict regarding
+missing header inclusions.
+
+Backported from: 794a29f01f8e5961adc5c79d5ba5ac1062877e6c
+
+Signed-off-by: Jörg Krause <joerg.krause@embedded.rocks>
+---
+ lib/libnfs.c | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/lib/libnfs.c b/lib/libnfs.c
+index d89d84d..43c17b9 100755
+--- a/lib/libnfs.c
++++ b/lib/libnfs.c
+@@ -70,6 +70,7 @@
+ #include <stdarg.h>
+ #include <stdlib.h>
+ #include <string.h>
++#include <time.h>
+ #include "slist.h"
+ #include "libnfs.h"
+ #include "libnfs-raw.h"
+--
+2.19.1
+
OpenPOWER on IntegriCloud