$NetBSD: patch-update.c,v 1.2 2018/12/18 14:16:18 hauke Exp $ Newer Linuxen (2018 Arch here) have moved makedev(3) and friends from to Fix for Radmind bug #221, accomodating for 64 bit time_t --- update.c.orig 2010-12-13 03:42:49.000000000 +0000 +++ update.c @@ -6,6 +6,9 @@ #include "config.h" #include +#if defined (__linux__) +#include +#endif #include #include #ifdef sun @@ -26,6 +29,7 @@ #include "update.h" #include "code.h" #include "radstat.h" +#include "largefile.h" #include "transcript.h" #include "progress.h" #include "mkdirs.h" @@ -73,7 +77,7 @@ update( char *path, char *displaypath, i mode = strtol( targv[ 2 ], (char **)NULL, 8 ); - times.modtime = atoi( targv[ 5 ] ); + times.modtime = strtotimet( targv[ 5 ], NULL, 10 ); if ( times.modtime != st->st_mtime ) { times.actime = st->st_atime; if ( utime( path, × ) != 0 ) {