diff options
Diffstat (limited to 'utils/inet.h')
-rw-r--r-- | utils/inet.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/utils/inet.h b/utils/inet.h index da1798432..29010efc1 100644 --- a/utils/inet.h +++ b/utils/inet.h @@ -40,6 +40,15 @@ #include <arpa/inet.h> #include <sys/select.h> +#define ns_close_socket close + +#ifdef WITH_AMISSL +/* AmiSSL needs everything to be using bsdsocket directly to avoid conflicts */ +#include <proto/bsdsocket.h> +#undef ns_close_socket +#define ns_close_socket CloseSocket +#endif + #else #include <winsock2.h> @@ -49,6 +58,8 @@ #define EAFNOSUPPORT WSAEAFNOSUPPORT #endif +#define ns_close_socket closesocket + #endif |