Prechádzať zdrojové kódy

Merge remote-tracking branch 'origin/maint-0.2.4'

Nick Mathewson 11 rokov pred
rodič
commit
66d52b876a
2 zmenil súbory, kde vykonal 9 pridanie a 0 odobranie
  1. 5 0
      changes/warn-unsigned-time_t
  2. 4 0
      configure.ac

+ 5 - 0
changes/warn-unsigned-time_t

@@ -0,0 +1,5 @@
+  o Build improvements:
+    - Warn if building on a platform with an unsigned time_t: there
+      are too many places where Tor currently assumes that time_t can
+      hold negative values. We'd like to fix them all, but probably
+      some will remain.

+ 4 - 0
configure.ac

@@ -985,6 +985,10 @@ AX_CHECK_SIGN([time_t],
 #endif
 ])
 
+if test "$ax_cv_decl_time_t_signed" = no; then
+  AC_MSG_WARN([You have an unsigned time_t; some things will probably break. Please tell the Tor developers about your interesting platform.])
+fi
+
 AX_CHECK_SIGN([size_t],
        [ tor_cv_size_t_signed=yes ],
        [ tor_cv_size_t_signed=no ], [