mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-10-01 06:21:56 -09:00
package/util-linux: fix libuuid build
Fix the following build failure raised since bump to version 2.37.2 in commit27a46793b1and https://git.kernel.org/pub/scm/utils/util-linux/util-linux.git/commit/?id=33b09aebf505acfbbb2137319093fbb9ed7eea7d libuuid/src/unparse.c:42:73: error: expected ';', ',' or ')' before 'fmt' static void uuid_fmt(const uuid_t uuid, char *buf, char const *restrict fmt) ^ Fixes: - http://autobuild.buildroot.org/results/b931a34a47e5faf8ae48fce079747dea0db2563a Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> [yann.morin.1998@free.fr: use symlink for util-linux-libs patch] Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr> (cherry picked from commit1b4fc24d65) Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
committed by
Peter Korsgaard
parent
b5db0f1921
commit
757a02e049
@@ -0,0 +1,30 @@
|
|||||||
|
From 5f9b88f43ba7f98f81bde3538d5f4e5cd1a6c01c Mon Sep 17 00:00:00 2001
|
||||||
|
From: Karel Zak <kzak@redhat.com>
|
||||||
|
Date: Thu, 5 Aug 2021 09:46:21 +0200
|
||||||
|
Subject: libuuid: include c.h to cover restrict keyword
|
||||||
|
|
||||||
|
References: https://github.com/karelzak/util-linux/issues/1405
|
||||||
|
Signed-off-by: Karel Zak <kzak@redhat.com>
|
||||||
|
|
||||||
|
[Retrieved from:
|
||||||
|
https://git.kernel.org/pub/scm/utils/util-linux/util-linux.git/commit/?id=5f9b88f43ba7f98f81bde3538d5f4e5cd1a6c01c]
|
||||||
|
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
|
||||||
|
---
|
||||||
|
libuuid/src/unparse.c | 1 +
|
||||||
|
1 file changed, 1 insertion(+)
|
||||||
|
|
||||||
|
diff --git a/libuuid/src/unparse.c b/libuuid/src/unparse.c
|
||||||
|
index f9a5e4315..ffeed2ed6 100644
|
||||||
|
--- a/libuuid/src/unparse.c
|
||||||
|
+++ b/libuuid/src/unparse.c
|
||||||
|
@@ -33,6 +33,7 @@
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <stdio.h>
|
||||||
|
+#include "c.h"
|
||||||
|
|
||||||
|
#include "uuidP.h"
|
||||||
|
|
||||||
|
--
|
||||||
|
cgit 1.2.3-1.el7
|
||||||
|
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
../0001-libuuid-include-c-h-to-cover-restrict-keyword.patch
|
||||||
Reference in New Issue
Block a user