]> granicus.if.org Git - curl/commitdiff
Attempt to quick-fix the getdate problem by post-replacing the getdate.c
authorDaniel Stenberg <daniel@haxx.se>
Tue, 24 Aug 2004 11:48:02 +0000 (11:48 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 24 Aug 2004 11:48:02 +0000 (11:48 +0000)
file after the bison/yacc process to add the fix Harshal Pradhan suggested.

lib/Makefile.am

index 148381592f3024c38122c65f93c65f7e13935790..a5579352dfa4f751877d4a9f75318552b36dc421 100644 (file)
@@ -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 \