shadowsocks / ChinaDNS

Protect yourself against DNS poisoning in China.
GNU General Public License v3.0
3.6k stars 1.29k forks source link

基于新版 DD-WRT 的 musl libc 编译问题及解决 #108

Closed rampageX closed 5 years ago

rampageX commented 9 years ago

新版的 DD-WRT 用的 musl libc,用工具链编译 chinadns 出错:

local_ns_parser.c

error: unknown type name 'u_int'

error: unknown type name 'u_char'

原因: u_int 和 u_char 不是标准的类型

解决,替换 local_ns_parser.c 文件中所有: u_char 为 unsigned char u_int 为 unsigned int

clowwindy commented 9 years ago

多谢,可以发一个 pull request