From 029e1273b8bca638ac586ffcba76aa220368cd81 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sa=C3=BAl=20Ibarra=20Corretg=C3=A9?= Date: Sat, 21 Jun 2014 01:27:29 +0200 Subject: [PATCH] unix: define NI_MAXHOST and NI_MAXSERV if needed OSX only exposes them if _POSIX_C_SOURCE is not defined, for instance. --- include/uv-unix.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/include/uv-unix.h b/include/uv-unix.h index 8636d5d2..d59d743e 100644 --- a/include/uv-unix.h +++ b/include/uv-unix.h @@ -55,6 +55,14 @@ # include "uv-bsd.h" #endif +#ifndef NI_MAXHOST +# define NI_MAXHOST 1025 +#endif + +#ifndef NI_MAXSERV +# define NI_MAXSERV 32 +#endif + #ifndef UV_IO_PRIVATE_PLATFORM_FIELDS # define UV_IO_PRIVATE_PLATFORM_FIELDS /* empty */ #endif