1
0
mirror of https://github.com/gryf/wmaker.git synced 2026-02-08 09:25:49 +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

@@ -48,7 +48,7 @@ wmquery_LDADD = libWINGs.a $(LIBLIST)
connect_SOURCES = connect.c
connect_LDADD = libWUtil.a @X_EXTRA_LIBS@ @LIBPL@
connect_LDADD = libWUtil.a @NETLIBS@ @LIBPL@
EXTRA_DIST = logo.xpm BUGS

View File

@@ -77,6 +77,7 @@ LITE = @LITE@
LN_S = @LN_S@
MAKEINFO = @MAKEINFO@
MOFILES = @MOFILES@
NETLIBS = @NETLIBS@
NLSDIR = @NLSDIR@
NM = @NM@
OBJDUMP = @OBJDUMP@
@@ -137,7 +138,7 @@ wmquery_LDADD = libWINGs.a $(LIBLIST)
connect_SOURCES = connect.c
connect_LDADD = libWUtil.a @X_EXTRA_LIBS@ @LIBPL@
connect_LDADD = libWUtil.a @NETLIBS@ @LIBPL@
EXTRA_DIST = logo.xpm BUGS

View File

@@ -77,6 +77,7 @@ LITE = @LITE@
LN_S = @LN_S@
MAKEINFO = @MAKEINFO@
MOFILES = @MOFILES@
NETLIBS = @NETLIBS@
NLSDIR = @NLSDIR@
NM = @NM@
OBJDUMP = @OBJDUMP@

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;
}