summaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2004-11-14 09:48:54 +0000
committerRoger Dingledine <arma@torproject.org>2004-11-14 09:48:54 +0000
commitbd4d99b3fea2c8c276b20efd20babcd01dde77ea (patch)
tree0b72f33cc37bb35a7d257c2cc83c7ca911640d82 /src/common
parent4564367b2aa0cc41947148d471609115cd9e60c8 (diff)
downloadtor-bd4d99b3fea2c8c276b20efd20babcd01dde77ea.tar.gz
tor-bd4d99b3fea2c8c276b20efd20babcd01dde77ea.zip
clean up the ftello call a little bit.
but i'm still getting: log.c:94: warning: implicit declaration of function `ftello' svn:r2848
Diffstat (limited to 'src/common')
-rw-r--r--src/common/log.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/common/log.c b/src/common/log.c
index af5d183ea1..c0ed2c0b9d 100644
--- a/src/common/log.c
+++ b/src/common/log.c
@@ -8,6 +8,7 @@
* \brief Functions to send messages to log files or the console.
*/
+#include <stdio.h>
#include <stdarg.h>
#include <assert.h>
#include <stdlib.h>
@@ -89,7 +90,7 @@ 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
+#ifdef HAVE_FTELLO
is_new = (ftello(lf->file) == 0);
#else
is_new = (ftell(lf->file) == 0);