[or-cvs] Use autoconf to enable largefile support where necessary. U...

Nick Mathewson nickm at seul.org
Fri Nov 12 05:05:43 UTC 2004


Update of /home/or/cvsroot/src/common
In directory moria.mit.edu:/tmp/cvs-serv20958/src/common

Modified Files:
	log.c 
Log Message:
Use autoconf to enable largefile support where necessary. Use ftello where available, since ftell can fail at 2GB.

Index: log.c
===================================================================
RCS file: /home/or/cvsroot/src/common/log.c,v
retrieving revision 1.63
retrieving revision 1.64
diff -u -d -r1.63 -r1.64
--- log.c	9 Nov 2004 20:04:00 -0000	1.63
+++ log.c	12 Nov 2004 05:05:40 -0000	1.64
@@ -89,7 +89,11 @@
   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. */



More information about the tor-commits mailing list