From: Karsten Ballüder Date: Tue, 26 Jan 1999 13:46:16 +0000 (+0000) Subject: More compilation fixes for Solaris. :-< X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/24178e4a14a3d10e5f389ce7d8eb35f6636df001 More compilation fixes for Solaris. :-< git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1488 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/common/sckaddr.cpp b/src/common/sckaddr.cpp index f3a3f48026..4c73c3c1e6 100644 --- a/src/common/sckaddr.cpp +++ b/src/common/sckaddr.cpp @@ -55,6 +55,13 @@ #include #include +#ifdef __SUN__ +extern "C" +{ + struct hostent *gethostbyname(const char *name); +}; +#endif + #endif // __UNIX__ #include "wx/sckaddr.h" diff --git a/src/gtk/app.cpp b/src/gtk/app.cpp index d499026b38..2c0b307922 100644 --- a/src/gtk/app.cpp +++ b/src/gtk/app.cpp @@ -30,6 +30,10 @@ #endif #include "unistd.h" +#ifdef __SUN__ +int usleep(unsigned int useconds); +#endif + #include "glib.h" #include "gdk/gdk.h" #include "gtk/gtk.h" diff --git a/src/gtk1/app.cpp b/src/gtk1/app.cpp index d499026b38..2c0b307922 100644 --- a/src/gtk1/app.cpp +++ b/src/gtk1/app.cpp @@ -30,6 +30,10 @@ #endif #include "unistd.h" +#ifdef __SUN__ +int usleep(unsigned int useconds); +#endif + #include "glib.h" #include "gdk/gdk.h" #include "gtk/gtk.h" diff --git a/src/iodbc/henv.h b/src/iodbc/henv.h index d4a175635d..a52c18d03f 100644 --- a/src/iodbc/henv.h +++ b/src/iodbc/henv.h @@ -32,6 +32,10 @@ #include #include +#ifndef SYSERR +#define SYSERR -1 +#endif + enum {