Solaris portability fixes.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@22579 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2006-02-28 12:42:51 +00:00
parent 9b09f56c62
commit 2f02241a0d
2 changed files with 15 additions and 0 deletions

View file

@ -43,6 +43,12 @@
#include <netinet/in.h>
#include <arpa/inet.h>
#ifndef AF_LOCAL
#define AF_LOCAL AF_UNIX
#endif
#ifndef PF_LOCAL
#define PF_LOCAL PF_UNIX
#endif
/**
* The concrete subclass of NSInputStream that reads from a file
@ -1384,11 +1390,15 @@ static void setNonblocking(int fd)
initToAddr: address port: port]);
if (!ins)
{
#if defined(PF_INET6)
ins = [[GSInet6InputStream alloc] initToAddr: address
port: port];
outs = [[GSInet6OutputStream alloc] initToAddr: address
port: port];
sock = socket(PF_INET6, SOCK_STREAM, 0);
#else
sock = -1;
#endif
}
else
{