Kaydet (Commit) 5f32a555 authored tarafından François Tigeot's avatar François Tigeot

NetBSD also needs the internal gethostbyname_r() implementation

Reported by: Thomas Klausner <wiz@NetBSD.org>
üst e5dea1e1
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
static pthread_mutex_t getrtl_mutex = PTHREAD_MUTEX_INITIALIZER; static pthread_mutex_t getrtl_mutex = PTHREAD_MUTEX_INITIALIZER;
/* struct passwd differs on some platforms */ /* struct passwd differs on some platforms */
#if defined(MACOSX) || defined(IOS) || defined(OPENBSD) #if defined(MACOSX) || defined(IOS) || defined(OPENBSD) || defined(NETBSD)
extern int h_errno; extern int h_errno;
...@@ -124,7 +124,7 @@ struct hostent *gethostbyname_r(const char *name, struct hostent *result, ...@@ -124,7 +124,7 @@ struct hostent *gethostbyname_r(const char *name, struct hostent *result,
return res; return res;
} }
#endif // OSX || IOS || OPENBSD #endif // OSX || IOS || OPENBSD || NETBSD
#if defined(MACOSX) #if defined(MACOSX)
/* /*
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment