浏览代码

kludge because openssl and zlib both typedef free_func :(

svn:r208
Roger Dingledine 22 年之前
父节点
当前提交
5d0904bc41
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      src/or/or.h

+ 2 - 0
src/or/or.h

@@ -37,7 +37,9 @@
 #include <assert.h>
 #include <time.h>
 #ifdef USE_ZLIB
+#define free_func zlib_free_func
 #include <zlib.h>
+#undef free_func
 #endif
 
 #include "../common/crypto.h"