[or-cvs] r10643: Fix solaris eventdns.c behavior. This time, I think I got it (in tor/trunk: . src/or)

nickm at seul.org nickm at seul.org
Sun Jun 17 17:43:25 UTC 2007


Author: nickm
Date: 2007-06-17 13:43:25 -0400 (Sun, 17 Jun 2007)
New Revision: 10643

Modified:
   tor/trunk/
   tor/trunk/ChangeLog
   tor/trunk/src/or/eventdns.c
Log:
 r13473 at catbus:  nickm | 2007-06-17 13:42:36 -0400
 Fix solaris eventdns.c behavior.  This time, I think I got it.  We were redefining _FILE_OFFSET_BITS, and thereby calling fstat64() on a struct stat, or something like that.



Property changes on: tor/trunk
___________________________________________________________________
 svk:merge ticket from /tor/trunk [r13473] on 8246c3cf-6607-4228-993b-4d95d33730f1

Modified: tor/trunk/ChangeLog
===================================================================
--- tor/trunk/ChangeLog	2007-06-17 16:41:07 UTC (rev 10642)
+++ tor/trunk/ChangeLog	2007-06-17 17:43:25 UTC (rev 10643)
@@ -37,6 +37,9 @@
     - Add DNSPort connections to the global connection list, so that we
       can time them out correctly. (Bug found by mwenge) [Bugfix on
       0.2.0.2-alpha]
+    - Fix eventdns.c behavior on Solaris: It is critical to include
+      orconfig.h _before_ sys/types.h, so that we can get the expected
+      definition of _FILE_OFFSET_BITS.  [Bugfix on 0.1.2.x]
 
   o Minor bugfixes (hidden services):
     - Stop tearing down the whole circuit when the user asks for a

Modified: tor/trunk/src/or/eventdns.c
===================================================================
--- tor/trunk/src/or/eventdns.c	2007-06-17 16:41:07 UTC (rev 10642)
+++ tor/trunk/src/or/eventdns.c	2007-06-17 17:43:25 UTC (rev 10643)
@@ -32,10 +32,9 @@
  * Version: 0.1b
  */
 
-#include <sys/types.h>
 #include "eventdns_tor.h"
+#include <sys/types.h>
 //#define NDEBUG
-#include "../common/torint.h"
 
 #ifndef DNS_USE_CPU_CLOCK_FOR_ID
 #ifndef DNS_USE_GETTIMEOFDAY_FOR_ID



More information about the tor-commits mailing list