* config/ltmain.m4sh (cwrappersource): clean up warnings and

#include errors.
This commit is contained in:
Peter Ekberg 2004-11-01 18:22:54 +00:00 committed by Gary V. Vaughan
parent f862366c5f
commit 9097c9c8e9
2 changed files with 9 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2004-11-01 Peter Ekberg <spam.protected>
* config/ltmain.m4sh (cwrappersource): clean up warnings and
#include errors.
2004-11-01 Peter Ekberg <spam.protected>
Sometimes, a wrapper script is generated for an executable that,

View File

@ -5655,6 +5655,7 @@ EOF
#include <malloc.h>
#include <stdarg.h>
#include <assert.h>
#include <string.h>
#include <sys/stat.h>
#if defined(PATH_MAX)
@ -5699,6 +5700,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
@ -5756,6 +5759,7 @@ EOF
EOF
cat >> $cwrappersource <<"EOF"
return 0;
}
void *
@ -5825,7 +5829,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;