From 385ebb5d8109bbdfa60137ccd650d7c78e0747e5 Mon Sep 17 00:00:00 2001 From: Stefan Neis Date: Mon, 23 Jan 2006 22:54:56 +0000 Subject: [PATCH] Yet another attempt at making the getservbyname_r prototype visible. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37101 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/unix/gsocket.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/unix/gsocket.cpp b/src/unix/gsocket.cpp index 1ea7b594e5..d417f12da8 100644 --- a/src/unix/gsocket.cpp +++ b/src/unix/gsocket.cpp @@ -36,6 +36,14 @@ #include #include #endif +#ifdef __NETBSD__ +#ifndef _NETBSD_SOURCE +#define _NETBSD_SOURCE +#endif +#ifndef _LIBC +#define _LIBC +#endif +#endif #include #include -- 2.45.2