Open paulfloyd opened 3 years ago
Hi again
This one looks easier to fix.
g++ -std=c++11 -g -fno-enforce-eh-specs -fno-stack-protector -fno-threadsafe-statics -fno-exceptions -fno-rtti -fdebug-prefix-map=../../libcody/= -W -Wall -include config.h -I../../libcody \ -MMD -MP -MF netclient.d -c -o netclient.o ../../libcody/netclient.cc ../../libcody/netclient.cc: In function 'int Cody::OpenInet6(const char**, const char*, int)': ../../libcody/netclient.cc:114:3: error: 'sockaddr_in6' was not declared in this scope; did you mean 'sockaddr_un'? 114 | sockaddr_in6 addr; | ^~~~~~~~~~~~ | sockaddr_un
My change to fix this
diff --git a/libcody/netclient.cc b/libcody/netclient.cc index 8cccface71c..c97ed4ca126 100644 --- a/libcody/netclient.cc +++ b/libcody/netclient.cc @@ -14,6 +14,7 @@ #include <unistd.h> #include <arpa/inet.h> #include <sys/un.h> +#include <netinet/in.h> #ifndef AI_NUMERICSERV #define AI_NUMERICSERV 0 diff --git a/libcody/netserver.cc b/libcody/netserver.cc index 7e43eb033f4..4e55089161e 100644 --- a/libcody/netserver.cc +++ b/libcody/netserver.cc @@ -13,6 +13,7 @@ #include <unistd.h> #include <arpa/inet.h> #include <sys/un.h> +#include <netinet/in.h> #ifndef AI_NUMERICSERV #define AI_NUMERICSERV 0
(not sure how OS neutral that header is)
Hi again
This one looks easier to fix.
My change to fix this
(not sure how OS neutral that header is)