-
Notifications
You must be signed in to change notification settings - Fork 56
Open
Description
用lean最新版源码编译时,编译器报错
根据报错提示,把
https://github.com/CCnut/feed-netkeeper/blob/LUCI-LUA-UCITRACK/netkeeper-interception/src/netkeeper-interception-c.c
14行和15行的
uint8_t
改成
u_int8_t
void print_hex __P(( unsigned char *, uint8_t, printer_func, void *));
void print_hex_to_file __P(( unsigned char *, uint8_t, printer_func, FILE *));
改成
void print_hex(unsigned char *, uint8_t, printer_func, void *);
void print_hex_to_file(unsigned char *, uint8_t, printer_func, FILE *);
即可通过编译
急着要用的话可以用我的fork
https://github.com/yuhanjin/feed-netkeeper
我感觉是gcc对于c语言的语法标准变严了,有些不太标准的语法在老版本的gcc上可以编译通过,在新版gcc上就直接报错了
由于只编译通过,没测试过实际能不能用,就不并入原代码了,实际能用的话再改把
Steady66666
Metadata
Metadata
Assignees
Labels
No labels