From def7c04a015eaf9abbe6c05951fc370950d59cb9 Mon Sep 17 00:00:00 2001 From: Stefan Neis Date: Wed, 25 Jan 2006 14:29:09 +0000 Subject: [PATCH 1/1] Yet another try to fix NetBSD's problem with getservbyname_r. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37125 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- configure | 3 +++ configure.in | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/configure b/configure index e0e91d9992..fd45a50be0 100755 --- a/configure +++ b/configure @@ -1861,6 +1861,9 @@ _ACEOF DEFAULT_DEFAULT_wxUSE_GTK=1 NEEDS_D_REENTRANT_FOR_R_FUNCS=1 + + + CPPFLAGS="-D_NETBSD_SOURCE -D_LIBC $CPPFLAGS" ;; *-*-osf* ) USE_ALPHA=1 diff --git a/configure.in b/configure.in index 6e48d6b6a6..b0efc2b708 100644 --- a/configure.in +++ b/configure.in @@ -205,6 +205,10 @@ case "${host}" in AC_DEFINE(__BSD__) DEFAULT_DEFAULT_wxUSE_GTK=1 NEEDS_D_REENTRANT_FOR_R_FUNCS=1 + + dnl some standard declarations in NetBSD headers are only included if + dnl _NETBSD_SOURCE and _LIBC are defined, e.g. getservbyname_r in netdb.h + CPPFLAGS="-D_NETBSD_SOURCE -D_LIBC $CPPFLAGS" ;; *-*-osf* ) USE_ALPHA=1 -- 2.45.2