Commit Diff
--- include/got_compat2.h +++ include/got_compat2.h @@ -295,6 +295,10 @@ typedef struct _SHA2_CTX { /* SOCK_NONBLOCK isn't available across BSDs... */ #if !defined(SOCK_NONBLOCK) && !defined(__linux__) #define SOCK_NONBLOCK 00004000 +#endif + +#ifndef HOST_NAME_MAX +#define HOST_NAME_MAX _SC_HOST_NAME_MAX #endif #ifndef HAVE_ASPRINTF