{
char *tmpbuf;
void * dbp ;
+ Stat_t statbuf;
dMY_CXT;
if (dbmrefcnt++)
Newx(tmpbuf, strlen(filename) + 5, char);
SAVEFREEPV(tmpbuf);
sprintf(tmpbuf,"%s.dir",filename);
- if (stat(tmpbuf, &PL_statbuf) < 0) {
+ if (stat(tmpbuf, &statbuf) < 0) {
if (flags & O_CREAT) {
if (mode < 0 || close(creat(tmpbuf,mode)) < 0)
croak("ODBM_File: Can't create %s", filename);
if (!buf)
buf = ""; /* XXX Needed? */
if (!buf[0]) { /* Empty... */
+ struct stat statbuf;
PerlIO_close(file);
/* Special case: maybe from -Zexe build, so
there is an executable around (contrary to
reached this place). */
sv_catpv(scrsv, ".exe");
PL_Argv[0] = scr = SvPV(scrsv, n_a); /* Reload */
- if (PerlLIO_stat(scr,&PL_statbuf) >= 0
- && !S_ISDIR(PL_statbuf.st_mode)) { /* Found */
+ if (PerlLIO_stat(scr,&statbuf) >= 0
+ && !S_ISDIR(statbuf.st_mode)) { /* Found */
real_name = scr;
pass++;
goto reread;