[Buildroot] [PATCH 20/21] BugFix - Bison - Fixed Missing stddef.h Include In wchar.h

Martin Banky martin.banky at gmail.com
Sun Sep 19 02:53:42 UTC 2010


When uClibc is configured without wchar support, wchar_t define is missing.
When configure runs it includes stddef.h, but when the build runs it does not.

Signed-off-by: Martin Banky <Martin.Banky at gmail.com>
---
 package/bison/bison-2.4.3-01-no-wchar.patch |   13 +++++++++++++
 1 files changed, 13 insertions(+), 0 deletions(-)
 create mode 100644 package/bison/bison-2.4.3-01-no-wchar.patch

diff --git a/package/bison/bison-2.4.3-01-no-wchar.patch b/package/bison/bison-2.4.3-01-no-wchar.patch
new file mode 100644
index 0000000..c22e0c5
--- /dev/null
+++ b/package/bison/bison-2.4.3-01-no-wchar.patch
@@ -0,0 +1,13 @@
+--- bison-2.4.3/lib/wchar.in.h	2010-09-09 23:14:49.000000000 -0700
++++ bison-2.4.3.no.wchar/lib/wchar.in.h	2010-09-09 22:07:49.000000000 -0700
+@@ -72,6 +72,10 @@
+ # @INCLUDE_NEXT@ @NEXT_WCHAR_H@
+ #endif
+ 
++#ifndef __UCLIBC_HAS_WCHAR__
++# include <stddef.h>
++#endif
++
+ #undef _GL_ALREADY_INCLUDING_WCHAR_H
+ 
+ #ifndef _GL_WCHAR_H
-- 
1.7.2.3



More information about the buildroot mailing list