From a832f63206956f272dca1aa10593a803f0ae1031 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karsten=20Ball=C3=BCder?= Date: Thu, 11 Nov 1999 11:04:47 +0000 Subject: [PATCH] fixed solaris gethostname() prototype git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4473 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/gtk/utilsres.cpp | 2 +- src/gtk1/utilsres.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gtk/utilsres.cpp b/src/gtk/utilsres.cpp index 7c9521fdc9..7572d1c723 100644 --- a/src/gtk/utilsres.cpp +++ b/src/gtk/utilsres.cpp @@ -42,7 +42,7 @@ #ifdef __SUN__ # define DEFAULT_XRESOURCE_DIR wxT("/usr/openwin/lib/app-defaults") // prototype missing in header files on Solaris 2.5 -extern int gethostname(char *name, size_t len); +extern "C" { int gethostname(char *name, size_t len); } #else # define DEFAULT_XRESOURCE_DIR wxT("/usr/lib/X11/app-defaults") #endif diff --git a/src/gtk1/utilsres.cpp b/src/gtk1/utilsres.cpp index 7c9521fdc9..7572d1c723 100644 --- a/src/gtk1/utilsres.cpp +++ b/src/gtk1/utilsres.cpp @@ -42,7 +42,7 @@ #ifdef __SUN__ # define DEFAULT_XRESOURCE_DIR wxT("/usr/openwin/lib/app-defaults") // prototype missing in header files on Solaris 2.5 -extern int gethostname(char *name, size_t len); +extern "C" { int gethostname(char *name, size_t len); } #else # define DEFAULT_XRESOURCE_DIR wxT("/usr/lib/X11/app-defaults") #endif