Can't Compile on OpenBSD 5.4
Hello,
It seems the code is not compatible with recent OpenBSD version (note that I didn't try with older versions).
cc -g -O2 -std=gnu99 -Wall -c -o parser.o parser.c parser.c: In function 'vp_in_addr': parser.c:304: error: 'AI_ADDRCONFIG' undeclared (first use in this function) parser.c:304: error: (Each undeclared identifier is reported only once parser.c:304: error: for each function it appears in.) gmake: *** [parser.o] Error 1
If I add: #ifndef AI_ADDRCONFIG #define AI_ADDRCONFIG 0 #endif
to parser.h cc -g -O2 -std=gnu99 -Wall -c -o redsocks.o redsocks.c In file included from redsocks.c:29: list.h:34:1: warning: "LIST_HEAD" redefined In file included from /usr/include/event.h:166, from redsocks.c:28: /usr/include/sys/queue.h:167:1: warning: this is the location of the previous definition redsocks.c:76: error: expected declaration specifiers or '...' before 'evutil_socket_t' redsocks.c:77: error: expected ')' before 'short' redsocks.c:77: error: expected ';', ',' or ')' before 'void' redsocks.c: In function 'redsocks_debug_dump_instance': redsocks.c:753: warning: format '%li' expects type 'long int', but argument 17 has type 'time_t' redsocks.c:753: warning: format '%li' expects type 'long int', but argument 18 has type 'time_t' redsocks.c: In function 'redsocks_init_instance': redsocks.c:817: warning: implicit declaration of function 'tracked_event_set' gmake: *** [redsocks.o] Error 1