X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/385ebb5d8109bbdfa60137ccd650d7c78e0747e5..b41b09e28513f8b30065914eeb1051a0a32e6e1b:/src/unix/gsocket.cpp diff --git a/src/unix/gsocket.cpp b/src/unix/gsocket.cpp index d417f12da8..63bed5a32f 100644 --- a/src/unix/gsocket.cpp +++ b/src/unix/gsocket.cpp @@ -36,14 +36,6 @@ #include #include #endif -#ifdef __NETBSD__ -#ifndef _NETBSD_SOURCE -#define _NETBSD_SOURCE -#endif -#ifndef _LIBC -#define _LIBC -#endif -#endif #include #include @@ -307,7 +299,7 @@ struct hostent * wxGethostbyaddr_r(const char *addr_buf, int buf_size, return he; } -#if defined(HAVE_GETHOSTBYNAME) +#if defined(HAVE_GETSERVBYNAME) static struct servent * deepCopyServent(struct servent *s, const struct servent *se, char *buffer, int size)