Explorar o código

patch strptime warning -- reduce portability!

svn:r511
Roger Dingledine %!s(int64=21) %!d(string=hai) anos
pai
achega
e7e858d0d1
Modificáronse 1 ficheiros con 5 adicións e 0 borrados
  1. 5 0
      src/or/routers.c

+ 5 - 0
src/or/routers.c

@@ -7,6 +7,11 @@
 #define OR_SIGNATURE_BEGIN_TAG "-----BEGIN SIGNATURE-----\n"
 #define OR_SIGNATURE_END_TAG "-----END SIGNATURE-----\n"
 
+#define _GNU_SOURCE
+/* XXX this is required on rh7 to make strptime not complain. how bad
+ * is this for portability?
+ */
+
 #include "or.h"
 
 /****************************************************************************/