* [Buildroot] [PATCH 1/1] package/stress-ng: Fix build issue with libbsd wchar check
@ 2019-01-01 15:41 Vadim Kochan
2019-02-23 8:46 ` Peter Korsgaard
0 siblings, 1 reply; 2+ messages in thread
From: Vadim Kochan @ 2019-01-01 15:41 UTC (permalink / raw)
To: buildroot
stress-ng uses test/test-bsd-wchar.c program to check if there is
support for libbsd's wchar, but the test fails because wchar.h also
requires the FILE* definition from stdio.h which is not included
automatically, so fix it by include stdio.h explicitly.
Fixes:
http://autobuild.buildroot.net/results/6def1bba8e7ec05682e74c4edc3a35c8c118d28b
Signed-off-by: Vadim Kochan <vadim4j@gmail.com>
---
...test-bsd-wchar-Explicitly-include-stdio.h.patch | 29 ++++++++++++++++++++++
1 file changed, 29 insertions(+)
create mode 100644 package/stress-ng/0003-test-test-bsd-wchar-Explicitly-include-stdio.h.patch
diff --git a/package/stress-ng/0003-test-test-bsd-wchar-Explicitly-include-stdio.h.patch b/package/stress-ng/0003-test-test-bsd-wchar-Explicitly-include-stdio.h.patch
new file mode 100644
index 0000000000..79d381bc65
--- /dev/null
+++ b/package/stress-ng/0003-test-test-bsd-wchar-Explicitly-include-stdio.h.patch
@@ -0,0 +1,29 @@
+From 291070801245da26e4841c321910b55016ca23c0 Mon Sep 17 00:00:00 2001
+From: Vadim Kochan <vadim.kochan@petcube.com>
+Date: Tue, 1 Jan 2019 17:24:54 +0200
+Subject: [PATCH] test/test-bsd-wchar: Explicitly include stdio.h
+
+libbsd's wchar requires FILE for some it's functions, for some
+reason it is not included by wchar automatically and the test fails. So
+include it explicitly.
+
+Signed-off-by: Vadim Kochan <vadim4j@gmail.com>
+---
+ test/test-bsd-wchar.c | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/test/test-bsd-wchar.c b/test/test-bsd-wchar.c
+index 4f7c7ca..6125968 100644
+--- a/test/test-bsd-wchar.c
++++ b/test/test-bsd-wchar.c
+@@ -22,6 +22,7 @@
+ * functionality.
+ *
+ */
++#include <stdio.h>
+ #include <bsd/wchar.h>
+
+ int main(void)
+--
+2.14.1
+
--
2.14.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [Buildroot] [PATCH 1/1] package/stress-ng: Fix build issue with libbsd wchar check
2019-01-01 15:41 [Buildroot] [PATCH 1/1] package/stress-ng: Fix build issue with libbsd wchar check Vadim Kochan
@ 2019-02-23 8:46 ` Peter Korsgaard
0 siblings, 0 replies; 2+ messages in thread
From: Peter Korsgaard @ 2019-02-23 8:46 UTC (permalink / raw)
To: buildroot
>>>>> "Vadim" == Vadim Kochan <vadim4j@gmail.com> writes:
> stress-ng uses test/test-bsd-wchar.c program to check if there is
> support for libbsd's wchar, but the test fails because wchar.h also
> requires the FILE* definition from stdio.h which is not included
> automatically, so fix it by include stdio.h explicitly.
> Fixes:
> http://autobuild.buildroot.net/results/6def1bba8e7ec05682e74c4edc3a35c8c118d28b
> Signed-off-by: Vadim Kochan <vadim4j@gmail.com>
Committed, thanks.
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-02-23 8:46 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-01-01 15:41 [Buildroot] [PATCH 1/1] package/stress-ng: Fix build issue with libbsd wchar check Vadim Kochan
2019-02-23 8:46 ` Peter Korsgaard
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox