fixed solaris gethostname() prototype

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4473 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Karsten Ballüder 1999-11-11 11:04:47 +00:00
parent cf1d22d685
commit a832f63206
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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