aboutsummaryrefslogtreecommitdiffhomepage
path: root/reader.c
diff options
context:
space:
mode:
authorGravatar axel <axel@liljencrantz.se>2006-06-22 00:15:44 +1000
committerGravatar axel <axel@liljencrantz.se>2006-06-22 00:15:44 +1000
commite42198b7c85f6b707c9dab4de2bba81f089b3b33 (patch)
treeb0f380a2c169e53447fc17b409ccea3ead6a940c /reader.c
parent2076944268331c1938ffd0700155c8e7936c19ef (diff)
Implement fallback version of futimes instead of testing for it's existance in reader.c
darcs-hash:20060621141544-ac50b-4726e3f63644b64b8bbb5cd829383c1fc6f8d86e.gz
Diffstat (limited to 'reader.c')
-rw-r--r--reader.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/reader.c b/reader.c
index b39b4442..776a8a36 100644
--- a/reader.c
+++ b/reader.c
@@ -962,7 +962,6 @@ static void check_colors()
static void reader_save_status()
{
-#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
@@ -983,9 +982,13 @@ static void reader_save_status()
}
;
+ /*
+ Don't check return value on these. We don't care if they fail,
+ really. This is all just to make the prompt look ok, which is
+ impossible to do 100% reliably. We try, at least.
+ */
futimes( 1, t );
futimes( 2, t );
-#endif
fstat( 1, &prev_buff_1 );
fstat( 2, &prev_buff_2 );