|
@@ -8,6 +8,7 @@
|
|
* \brief Functions to send messages to log files or the console.
|
|
* \brief Functions to send messages to log files or the console.
|
|
*/
|
|
*/
|
|
|
|
|
|
|
|
+#include <stdio.h>
|
|
#include <stdarg.h>
|
|
#include <stdarg.h>
|
|
#include <assert.h>
|
|
#include <assert.h>
|
|
#include <stdlib.h>
|
|
#include <stdlib.h>
|
|
@@ -89,7 +90,7 @@ static void log_tor_version(logfile_t *lf, int reset)
|
|
if (lf->is_temporary)
|
|
if (lf->is_temporary)
|
|
/* If it's temporary, it isn't really a file. */
|
|
/* If it's temporary, it isn't really a file. */
|
|
return;
|
|
return;
|
|
-#if HAVE_FTELLO
|
|
|
|
|
|
+#ifdef HAVE_FTELLO
|
|
is_new = (ftello(lf->file) == 0);
|
|
is_new = (ftello(lf->file) == 0);
|
|
#else
|
|
#else
|
|
is_new = (ftell(lf->file) == 0);
|
|
is_new = (ftell(lf->file) == 0);
|