From: Peter Ekberg Date: Mon, 1 Nov 2004 18:18:39 +0000 (+0000) Subject: * config/ltmain.m4sh (cwrappersource): clean up warnings and X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=08712f79c63ef63d946d907fd8cb25b177b868d0;p=thirdparty%2Flibtool.git * config/ltmain.m4sh (cwrappersource): clean up warnings and #include errors. --- diff --git a/ChangeLog b/ChangeLog index 9584de433..b276cf583 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2004-11-01 Peter Ekberg + + * config/ltmain.m4sh (cwrappersource): clean up warnings and + #include errors. + 2004-11-01 Peter Ekberg Sometimes, a wrapper script is generated for an executable that, diff --git a/config/ltmain.m4sh b/config/ltmain.m4sh index afa3277ea..f4860ce7b 100644 --- a/config/ltmain.m4sh +++ b/config/ltmain.m4sh @@ -5661,6 +5661,7 @@ EOF #include #include #include +#include #include #if defined(PATH_MAX) @@ -5705,6 +5706,8 @@ EOF if (stale) { free ((void *) stale); stale = 0; } \ } while (0) +/* -DDEBUG is fairly common in CFLAGS. */ +#undef DEBUG #if defined DEBUGWRAPPER # define DEBUG(format, ...) fprintf(stderr, format, __VA_ARGS__) #else @@ -5762,6 +5765,7 @@ EOF EOF cat >> $cwrappersource <<"EOF" + return 0; } void * @@ -5831,7 +5835,6 @@ find_executable (const char* wrapper) int has_slash = 0; const char* p; const char* p_next; - struct stat st; /* static buffer for getcwd */ char tmp[[LT_PATHMAX + 1]]; int tmp_len;