1
0
mirror of https://github.com/gryf/wmaker.git synced 2026-02-13 12:25:53 +01:00

Fixed some compilation problems for solaris

This commit is contained in:
dan
1999-12-14 02:21:04 +00:00
parent e5a7a883eb
commit 3f9b7858df
28 changed files with 381 additions and 120 deletions

View File

@@ -26,6 +26,9 @@
*
*/
#include "../src/config.h"
#include <unistd.h>
#include <fcntl.h>
#include <stdio.h>
@@ -275,7 +278,11 @@ getSocketAddress(char* name, char* service, char* protocol) /*FOLD00*/
return NULL; /* name is not a hostname nor a number and dot adr */
name = WMGetHostAddress(host);
#ifndef HAVE_INET_ATON
if ((socketaddr.sin_addr.s_addr = inet_addr(name)) == INADDR_NONE) {
#else
if (inet_aton(name, &socketaddr.sin_addr) == 0) {
#endif
WMReleaseHost(host);
return NULL;
}