mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 00:41:02 +00:00
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:
parent
9b09f56c62
commit
2f02241a0d
2 changed files with 15 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
2006-02-28 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
* Source/unix/NSStream.m: More portability fixups ... use
|
||||
AF_UNIX and PF_UNIX if AF_LOCAL and PF_LOCAL are not avaulable.
|
||||
Check for PF_INET6
|
||||
|
||||
2006-02-27 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* Source/Additions/GSXML.m: Helge spotted thread safety issues with
|
||||
|
|
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue