I try to compile onion-cat from source for Alpine Linux but I get an error
ocathosts.c:205:21 error: ‘_PATH_HOSTS’ undeclared (first use in this function) path_hosts_ = _PATH_HOSTS
This cpp macro should be defined in netdb.h but apparently it isn’t. Open the file config.h in the root directory of the OnionCat package and add the following line:
2 comments
I try to compile onion-cat from source for Alpine Linux but I get an error
ocathosts.c:205:21 error: ‘_PATH_HOSTS’ undeclared (first use in this function) path_hosts_ = _PATH_HOSTS
Can anybody help me in solve this problem?
Thanks
Author
This cpp macro should be defined in netdb.h but apparently it isn’t. Open the file config.h in the root directory of the OnionCat package and add the following line:
#define _PATH_HOSTS "/etc/hosts"
and then recompile.