From 5d92fbe30e30844a02c155f0874df6b086e4dc7d Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Fri, 12 Nov 2004 05:05:41 +0000 Subject: Use autoconf to enable largefile support where necessary. Use ftello where available, since ftell can fail at 2GB. svn:r2806 --- src/common/log.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/common/log.c') diff --git a/src/common/log.c b/src/common/log.c index 7e351aed2a..af5d183ea1 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. */ -- cgit v1.2.3-54-g00ecf