#include <socket.h>
#include <in.h>
#else
-#if defined(__FreeBSD__) || defined (__NetBSD__)
+#if defined(__FreeBSD__) || defined (__NetBSD__) || defined(__SUN__)
#include <sys/types.h>
#endif
#include <sys/types.h>
#include <unistd.h>
#include <netdb.h>
-#ifdef __SUN__
-extern "C" {
- int gethostname(char *name, int namelen);
-};
-#endif
-
#endif // __UNIX__
#include "wx/sckaddr.h"