Staging
v0.5.1
v0.5.1
Revision e135102ae091f3d756a57ca995e34f0739810ad9 authored by Barry Warsaw on 01 March 2010, 21:49:12 UTC, committed by Barry Warsaw on 01 March 2010, 21:49:12 UTC
........ r78566 | barry.warsaw | 2010-03-01 16:46:51 -0500 (Mon, 01 Mar 2010) | 4 lines Manually copy patch for bug 7250 from the release26-maint branch. I suck because I did this in the wrong order and couldn't smack svnmerge into submission. ........
1 parent f670629
getmtime.c
/* Subroutine to get the last modification time of a file */
/* (A separate file because this may be OS dependent) */
#include "Python.h"
#include "pyconfig.h"
#ifdef __cplusplus
extern "C" {
#endif
time_t
PyOS_GetLastModificationTime(char *path, FILE *fp)
{
struct stat st;
if (fstat(fileno(fp), &st) != 0)
return -1;
else
return st.st_mtime;
}
#ifdef __cplusplus
}
#endif
Computing file changes ...