]> granicus.if.org Git - sudo/commitdiff
Include config.h before any other includes to make sure we get the
authorTodd C. Miller <Todd.Miller@courtesan.com>
Wed, 10 Nov 2010 14:10:16 +0000 (09:10 -0500)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Wed, 10 Nov 2010 14:10:16 +0000 (09:10 -0500)
right value for _FILE_OFFSET_BITS.

--HG--
branch : 1.7

Makefile.in
getdate.c
gram.c
toke.c

index b98d09d4770170088f71877b4c484144cf1ce801..cf013a4a121a24ea21a16916277e9d5c8535d6d0 100644 (file)
@@ -229,21 +229,27 @@ libsudo_noexec.la: sudo_noexec.lo
 # Uncomment the lines before -@true if you intend to modify gram.y
 $(devdir)/gram.c $(devdir)/gram.h: $(srcdir)/gram.y
 @DEV@  $(YACC) -d $(srcdir)/gram.y
-@DEV@  mv -f y.tab.c gram.c
-@DEV@  if cmp -s y.tab.h gram.h; then rm -f y.tab.h; else mv -f y.tab.h gram.h; fi
+@DEV@  echo "#include <config.h>" > $(devdir)/gram.c
+@DEV@  cat y.tab.c >> $(devdir)/gram.c
+@DEV@  rm -f y.tab.c
+@DEV@  mv -f y.tab.h $(devdir)/gram.h
        -@true
 
 # Uncomment the lines before -@true if you intend to modify toke.l
 $(devdir)/toke.c: $(srcdir)/toke.l
 @DEV@  $(FLEX) $(srcdir)/toke.l
-@DEV@  mv -f lex.yy.c toke.c
+@DEV@  echo "#include <config.h>" > $(devdir)/toke.c
+@DEV@  cat lex.yy.c >> $(devdir)/toke.c
+@DEV@  rm -f lex.yy.c
        -@true
 
 # Uncomment the lines before -@true if you intend to modify getdate.y
 $(devdir)/getdate.c: $(srcdir)/getdate.y
 @DEV@  echo "expect 10 shift/reduce conflicts"
 @DEV@  $(YACC) $(srcdir)/getdate.y
-@DEV@  mv -f y.tab.c getdate.c
+@DEV@  echo "#include <config.h>" > $(devdir)/getdate.c
+@DEV@  cat y.tab.c >> $(devdir)/getdate.c
+@DEV@  rm -f y.tab.c
        -@true
 
 # Uncomment the following if you intend to modify def_data.in
index 8538fe3672af924f658c1f87e157413827f8751a..7544c3f712d440d18709b23a3c5c3f1640e711ad 100644 (file)
--- a/getdate.c
+++ b/getdate.c
@@ -1,3 +1,4 @@
+#include <config.h>
 #include <stdlib.h>
 #include <string.h>
 #define YYBYACC 1
diff --git a/gram.c b/gram.c
index d2e8b46ae895c4bd0f8204fa8afb9064aeeeb4b2..d016a0fd41f4fb651e7c8345c49bab0b23af89ea 100644 (file)
--- a/gram.c
+++ b/gram.c
@@ -1,3 +1,4 @@
+#include <config.h>
 #include <stdlib.h>
 #include <string.h>
 #define YYBYACC 1
diff --git a/toke.c b/toke.c
index 92acbcdd0cec172c72881bc978c2ee7502666672..b75202f4c9c6a0705c3722fcdc1e5d81372b4ae2 100644 (file)
--- a/toke.c
+++ b/toke.c
@@ -1,3 +1,4 @@
+#include <config.h>
 /*     $OpenBSD: flex.skl,v 1.11 2010/08/04 18:24:50 millert Exp $     */
 
 /* A lexical scanner generated by flex */