Some stubs includes removed from wxMotif; wxNotebook sample hack to make it display;
changes to defs.h and memory.h etc. for Solaris compilation git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1173 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -34,10 +34,14 @@
|
||||
#include <netdb.h>
|
||||
#include <signal.h>
|
||||
|
||||
#ifdef __SVR4__
|
||||
#if defined(__SVR4__) && !defined(__HPUX__)
|
||||
#include <sys/systeminfo.h>
|
||||
#endif
|
||||
|
||||
#if (defined(__SUNCC__) || defined(__CLCC__))
|
||||
#include <sysent.h>
|
||||
#endif
|
||||
|
||||
#include <Xm/Xm.h>
|
||||
|
||||
#include "wx/motif/private.h"
|
||||
@@ -57,7 +61,7 @@ extern wxList wxTopLevelWindows;
|
||||
// Get full hostname (eg. DoDo.BSn-Germany.crg.de)
|
||||
bool wxGetHostName(char *buf, int maxSize)
|
||||
{
|
||||
#if defined(SVR4) && !defined(__hpux)
|
||||
#if defined(__SVR4__) && !defined(__HPUX__)
|
||||
return (sysinfo (SI_HOSTNAME, buf, maxSize) != -1);
|
||||
#else /* BSD Sockets */
|
||||
char name[255];
|
||||
@@ -487,7 +491,7 @@ void wxXMergeDatabases (wxApp * theApp, Display * display)
|
||||
size_t len;
|
||||
environment = GetIniFile (filename, NULL);
|
||||
len = strlen (environment);
|
||||
#if defined(SVR4) && !defined(__hpux)
|
||||
#if defined(__SVR4__) && !defined(__HPUX__)
|
||||
(void) sysinfo (SI_HOSTNAME, environment + len, 1024 - len);
|
||||
#else
|
||||
(void) gethostname (environment + len, 1024 - len);
|
||||
|
Reference in New Issue
Block a user