diff options
author | axel <axel@liljencrantz.se> | 2006-01-10 01:10:47 +1000 |
---|---|---|
committer | axel <axel@liljencrantz.se> | 2006-01-10 01:10:47 +1000 |
commit | 810d9104fca780e18bd08d2266efb91142fcb57f (patch) | |
tree | efa9fc9ac539fcac591d727280c0643df7353cad /reader.c | |
parent | 54c502c3cf3c9912726458ae00d4f46c83cef2b3 (diff) |
Improve detection of futimes function, and make it fail without giving an error message, since it is not critical anyways
darcs-hash:20060109151047-ac50b-ebbda6a65853dc03aa12c1e28cd293d7e5557bb1.gz
Diffstat (limited to 'reader.c')
-rw-r--r-- | reader.c | 8 |
1 files changed, 3 insertions, 5 deletions
@@ -904,7 +904,7 @@ static void check_colors() static void reader_save_status() { -#if (defined(__FreeBSD__) || defined(__NetBSD__)) +#ifdef HAVE_FUTIMES /* This futimes call tries to trick the system into using st_mtime as a tampering flag. This of course only works on systems where @@ -918,10 +918,8 @@ static void reader_save_status() } ; - if( futimes( 1, &t ) || futimes( 2, &t ) ) - { - wperror( L"futimes" ); - } + futimes( 1, &t ); + futimes( 2, &t ); #endif fstat( 1, &prev_buff_1 ); |