]> git.saurik.com Git - wxWidgets.git/blobdiff - src/unix/gsocket.cpp
Documenting WX_MONOLITHIC build option.
[wxWidgets.git] / src / unix / gsocket.cpp
index d417f12da8bf8a6d2f1250ae711affc5c9a3ce93..63bed5a32f89d0dc6dc97ab9443896c8d881b40c 100644 (file)
 #include <types.h>
 #include <netinet/in.h>
 #endif
 #include <types.h>
 #include <netinet/in.h>
 #endif
-#ifdef __NETBSD__
-#ifndef _NETBSD_SOURCE
-#define _NETBSD_SOURCE
-#endif
-#ifndef _LIBC
-#define _LIBC
-#endif
-#endif
 #include <netdb.h>
 #include <sys/ioctl.h>
 
 #include <netdb.h>
 #include <sys/ioctl.h>
 
@@ -307,7 +299,7 @@ struct hostent * wxGethostbyaddr_r(const char *addr_buf, int buf_size,
   return he;
 }
 
   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)
 static struct servent * deepCopyServent(struct servent *s,
                                        const struct servent *se,
                                        char *buffer, int size)