From 6ed6d1239a4fd78b461d9e9240aad659459a7b1e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Karsten=20Ball=C3=BCder?= Date: Tue, 9 Nov 1999 10:21:53 +0000 Subject: [PATCH] added gethostname protoype for Solaris git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4454 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/gtk/utilsres.cpp | 6 ++++-- src/gtk1/utilsres.cpp | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/src/gtk/utilsres.cpp b/src/gtk/utilsres.cpp index c12f461e11..7c9521fdc9 100644 --- a/src/gtk/utilsres.cpp +++ b/src/gtk/utilsres.cpp @@ -40,9 +40,11 @@ // Yuck this is really BOTH site and platform dependent // so we should use some other strategy! #ifdef __SUN__ - #define DEFAULT_XRESOURCE_DIR wxT("/usr/openwin/lib/app-defaults") +# 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); #else - #define DEFAULT_XRESOURCE_DIR wxT("/usr/lib/X11/app-defaults") +# define DEFAULT_XRESOURCE_DIR wxT("/usr/lib/X11/app-defaults") #endif //----------------------------------------------------------------------------- diff --git a/src/gtk1/utilsres.cpp b/src/gtk1/utilsres.cpp index c12f461e11..7c9521fdc9 100644 --- a/src/gtk1/utilsres.cpp +++ b/src/gtk1/utilsres.cpp @@ -40,9 +40,11 @@ // Yuck this is really BOTH site and platform dependent // so we should use some other strategy! #ifdef __SUN__ - #define DEFAULT_XRESOURCE_DIR wxT("/usr/openwin/lib/app-defaults") +# 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); #else - #define DEFAULT_XRESOURCE_DIR wxT("/usr/lib/X11/app-defaults") +# define DEFAULT_XRESOURCE_DIR wxT("/usr/lib/X11/app-defaults") #endif //----------------------------------------------------------------------------- -- 2.45.2