diff --git a/polymer/eduke32/build/include/compat.h b/polymer/eduke32/build/include/compat.h index bc8779552..66b66faa3 100644 --- a/polymer/eduke32/build/include/compat.h +++ b/polymer/eduke32/build/include/compat.h @@ -587,6 +587,7 @@ static inline uint16_t system_15bit_rand(void) { return ((uint16_t)rand())&0x7ff # define Bgetcwd getcwd # define Bgetenv getenv # define Btime() time(NULL) +# define Butime utime #else diff --git a/polymer/eduke32/build/src/util/kextract.c b/polymer/eduke32/build/src/util/kextract.c index f0fd951ac..386dec5e7 100644 --- a/polymer/eduke32/build/src/util/kextract.c +++ b/polymer/eduke32/build/src/util/kextract.c @@ -7,6 +7,8 @@ #include "compat.h" +#include + #define MAXFILES 4096 static char buf[65536]; @@ -36,6 +38,7 @@ void findfiles(const char *dafilespec) int main(int argc, char **argv) { int i, j, k, l, fil, fil2; + struct Bstat stbuf; int onlylist = (argc==2); @@ -126,6 +129,9 @@ int main(int argc, char **argv) return(0); } + if (Bfstat(fil, &stbuf) == -1) + stbuf.st_mtime = 0; + for(i=0;i