unix: define NI_MAXHOST and NI_MAXSERV if needed

OSX only exposes them if _POSIX_C_SOURCE is not defined, for instance.
This commit is contained in:
Saúl Ibarra Corretgé 2014-06-21 01:27:29 +02:00
parent e392a1af4d
commit 029e1273b8

View File

@ -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