Ignore:
Timestamp:
Jun 18, 2012, 12:50:38 AM (13 years ago)
Author:
bird
Message:

kmk build fixes for win.amd64.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kmk/kmkbuiltin/mscfakes.c

    r2484 r2592  
    533533
    534534
    535 #undef stat
    536535/*
    537536 * Workaround for directory names with trailing slashes.
    538  * Added by bird reasons stated.
    539537 */
     538#undef stat
    540539int
    541 my_other_stat(const char *path, struct stat *st)
     540bird_w32_stat(const char *path, struct stat *st)
    542541{
    543542    int rc = stat(path, st);
     
    564563        }
    565564    }
    566     return rc;
    567 }
    568 
     565#ifdef KMK_PRF
     566    {
     567        int err = errno;
     568        fprintf(stderr, "stat(%s,) -> %d/%d\n", path, rc, errno);
     569        errno = err;
     570    }
     571#endif
     572    return rc;
     573}
     574
Note: See TracChangeset for help on using the changeset viewer.