diff options
Diffstat (limited to 'src/common/log.c')
-rw-r--r-- | src/common/log.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/common/log.c b/src/common/log.c index 7e351aed2..af5d183ea 100644 --- a/src/common/log.c +++ b/src/common/log.c @@ -89,7 +89,11 @@ static void log_tor_version(logfile_t *lf, int reset) if (lf->is_temporary) /* If it's temporary, it isn't really a file. */ return; +#if HAVE_FTELLO + is_new = (ftello(lf->file) == 0); +#else is_new = (ftell(lf->file) == 0); +#endif if (reset && !is_new) /* We are resetting, but we aren't at the start of the file; no * need to log again. */ |