]> git.saurik.com Git - wxWidgets.git/commitdiff
Yet another try to fix NetBSD's problem with getservbyname_r.
authorStefan Neis <Stefan.Neis@t-online.de>
Wed, 25 Jan 2006 14:29:09 +0000 (14:29 +0000)
committerStefan Neis <Stefan.Neis@t-online.de>
Wed, 25 Jan 2006 14:29:09 +0000 (14:29 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37125 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

configure
configure.in

index e0e91d9992715fd1ae106e38fe0e912ed881884f..fd45a50be0293a1e2cf017e2b5eeb00740c73935 100755 (executable)
--- 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
index 6e48d6b6a6bf248db6eda529a786182f90adefdd..b0efc2b7088fc1aa12574810abc071fb998893c2 100644 (file)
@@ -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