aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2004-08-24 11:48:02 +0000
committerDaniel Stenberg <daniel@haxx.se>2004-08-24 11:48:02 +0000
commitee44677d7e6b03efdb0b52f1311583d4d9cf3608 (patch)
tree60e7ee83ee584ab435a7927a44121faba85e730e
parent20057aee2e5b18e443b8324cfc5cd16941b0e3eb (diff)
Attempt to quick-fix the getdate problem by post-replacing the getdate.c
file after the bison/yacc process to add the fix Harshal Pradhan suggested.
-rw-r--r--lib/Makefile.am5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/Makefile.am b/lib/Makefile.am
index 148381592..a5579352d 100644
--- a/lib/Makefile.am
+++ b/lib/Makefile.am
@@ -97,9 +97,8 @@ BUILT_SOURCES = $(srcdir)/getdate.c $(top_builddir)/lib/ca-bundle.h
# Say $(srcdir), so GNU make does not report an ambiguity with the .y.c rule.
$(srcdir)/getdate.c: getdate.y
- cd $(srcdir) && \
- $(YACC) $(YFLAGS) getdate.y; \
- mv -f y.tab.c getdate.c
+ cd $(srcdir) && $(YACC) $(YFLAGS) getdate.y && \
+ sed -e 's:YYSTYPE yylval;:YYSTYPE yylval = {0}; /* post-bison fix */:' < y.tab.c > getdate.c && rm -f y.tab.c
$(top_builddir)/lib/ca-bundle.h: Makefile.in Makefile
@if test -f $@; then \