[uClibc] [patch] uClibc-0.9.23 ncurses compilation problem
David Jez
dave.jez at seznam.cz
Tue Nov 18 08:57:19 UTC 2003
Hi, this patch solve problem with ncurses which defines their own type
bool.
--
-------------------------------------------------------
David "Dave" Jez Brno, CZ, Europe
E-mail: dave.jez at seznam.cz
PGP key: finger xjezda00 at eva.fit.vutbr.cz
---------=[ ~EOF ]=------------------------------------
-------------- next part --------------
diff -urN uClibc-0.9.23.orig/extra/config/expr.h uClibc-0.9.23/extra/config/expr.h
--- uClibc-0.9.23.orig/extra/config/expr.h Tue Aug 5 03:52:38 2003
+++ uClibc-0.9.23/extra/config/expr.h Mon Nov 17 21:52:19 2003
@@ -12,7 +12,16 @@
#include <stdio.h>
#ifndef __cplusplus
+#ifndef __NCURSES_H
#include <stdbool.h>
+#else
+#undef bool
+typedef char bool;
+#undef false
+#undef true
+#define false 0
+#define true 1
+#endif
#endif
struct file {
More information about the uClibc
mailing list