Kaydet (Commit) fc1c44d1 authored tarafından Michael Meeks's avatar Michael Meeks

only build custom gethostbyname for OSX & IOS

üst 44122737
...@@ -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(FREEBSD) || (__FreeBSD_version < 601103) #if defined(MACOSX) || defined(IOS)
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 /* !defined(FREEBSD) || (__FreeBSD_version < 601103) */ #endif // OSX || IOS
#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