mirror of
https://git.openafs.org/openafs.git
synced 2025-01-31 05:27:44 +00:00
KDFS-rxgen-cpp-definition-20081221
LICENSE MIT FIXES 124011 avoid "ologo" compilation error messages due to buffer overflow in rxgen on Windows. research performed by mlane@sinenomine.net. (cherry picked from commit 992ec096332c31f64e8cff66e20d2ab87708485f)
This commit is contained in:
parent
db3d1fb516
commit
8555573a6c
@ -94,11 +94,15 @@ char xflag = 0; /* if set, add stats code to stubs */
|
||||
char yflag = 0; /* if set, only emit function name arrays to xdr file */
|
||||
int debug = 0;
|
||||
static char *cmdname;
|
||||
#ifdef AFS_NT40_ENV
|
||||
static char *CPP = NULL;
|
||||
#else /* AFS_NT40_ENV */
|
||||
#ifdef __PROG_CPP__
|
||||
static char CPP[] = __PROG_CPP__;
|
||||
#else
|
||||
static char CPP[] = "/lib/cpp";
|
||||
#endif
|
||||
#endif /* AFS_NT40_ENV */
|
||||
static char CPPFLAGS[] = "-C";
|
||||
|
||||
#ifdef AFS_ALPHA_ENV
|
||||
@ -144,16 +148,14 @@ int
|
||||
main(int argc, char *argv[])
|
||||
{
|
||||
struct commandline cmd;
|
||||
#ifdef AFS_NT40_ENV
|
||||
char *ep;
|
||||
|
||||
/* initialize CPP with the correct pre-processor on NT */
|
||||
ep = getenv("RXGEN_CPPCMD");
|
||||
if (ep)
|
||||
strcpy(CPP, ep);
|
||||
else
|
||||
strcpy(CPP, "cl /EP /C /nologo");
|
||||
#endif
|
||||
#ifdef AFS_NT40_ENV
|
||||
/* initialize CPP with the correct pre-processor for Windows */
|
||||
CPP = getenv("RXGEN_CPPCMD");
|
||||
if (!CPP)
|
||||
CPP = "cl /EP /C /nologo";
|
||||
#endif /* AFS_NT40_ENV */
|
||||
|
||||
#ifdef AFS_AIX32_ENV
|
||||
/*
|
||||
* The following signal action for AIX is necessary so that in case of a
|
||||
|
Loading…
x
Reference in New Issue
Block a user