summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>2010-02-10 00:21:04 +0100
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2010-02-10 00:44:29 +0100
commit93df31e4047f0c5708605570de65bcd1d777c01d (patch)
tree03687b3f293e93c5634afa95a22f33db778a5e10
parent5f41cfe3cdcda3b66b757c0f5832c6ade6d32438 (diff)
downloadbuildroot-novena-93df31e4047f0c5708605570de65bcd1d777c01d.tar.gz
buildroot-novena-93df31e4047f0c5708605570de65bcd1d777c01d.zip
at: fix compile breakage when flex isn't on the target
Add a patch that makes sure config.h gets included in a file that uses some of the NEEDS_* macros. The yywrap() function was missing when flex was not available on the target, even though this configuration is supposed to be supported by at (and handled by NEEDS_YYWRAP). Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
-rw-r--r--package/at/at-3.1.12-0007-include-config-h.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/package/at/at-3.1.12-0007-include-config-h.patch b/package/at/at-3.1.12-0007-include-config-h.patch
new file mode 100644
index 000000000..8afc502c8
--- /dev/null
+++ b/package/at/at-3.1.12-0007-include-config-h.patch
@@ -0,0 +1,16 @@
+Make sure to include config.h so that NEEDS_* macros are properly
+taken into account. This was a problem for NEEDS_YYWRAP, which was set
+to 1 in config.h, but the corresponding code wasn't compiled in.
+
+Index: at-3.1.12/parsetime.l
+===================================================================
+--- at-3.1.12.orig/parsetime.l 2010-02-10 00:17:46.000000000 +0100
++++ at-3.1.12/parsetime.l 2010-02-10 00:18:07.000000000 +0100
+@@ -4,6 +4,7 @@
+ #include <time.h>
+ #include "y.tab.h"
+ #include "parsetime.h"
++#include "config.h"
+
+ char *last_token = NULL;
+ char **my_argv;