瀏覽代碼

patch strptime warning -- reduce portability!

svn:r511
Roger Dingledine 21 年之前
父節點
當前提交
e7e858d0d1
共有 1 個文件被更改,包括 5 次插入0 次删除
  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"
 
 /****************************************************************************/