소스 검색

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"
 
 /****************************************************************************/