diff options
author | Nick Mathewson <nickm@torproject.org> | 2004-11-12 05:05:41 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2004-11-12 05:05:41 +0000 |
commit | 5d92fbe30e30844a02c155f0874df6b086e4dc7d (patch) | |
tree | b87313f84a9d7f02741004016d81c64b4bb29211 /src/common/log.c | |
parent | 0faab62cd96a671f9018bd9cb8e23daf7eb3344f (diff) | |
download | tor-5d92fbe30e30844a02c155f0874df6b086e4dc7d.tar tor-5d92fbe30e30844a02c155f0874df6b086e4dc7d.tar.gz |
Use autoconf to enable largefile support where necessary. Use ftello where available, since ftell can fail at 2GB.
svn:r2806
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. */ |