Compatibility improvements for QNX.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@35451 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Niels Grewe 2012-08-26 08:55:49 +00:00
parent 868d8a6922
commit ee4052bf6d
13 changed files with 3066 additions and 2272 deletions

View file

@ -66,7 +66,9 @@
#include <sys/ioctl.h>
#ifdef __svr4__
#include <sys/filio.h>
# ifdef HAVE_SYS_FILIO_H
# include <sys/filio.h>
# endif
#endif
#include <netdb.h>
@ -75,7 +77,7 @@
/*
* Stuff for setting the sockets into non-blocking mode.
*/
#ifdef __POSIX_SOURCE
#if defined(__POSIX_SOURCE) || defined(__EXT_POSIX1_198808)
#define NBLK_OPT O_NONBLOCK
#else
#define NBLK_OPT FNDELAY
@ -773,7 +775,7 @@ NSString * const GSSOCKSRecvAddr = @"GSSOCKSRecvAddr";
return nil;
}
}
info = [[NSMutableDictionary alloc] initWithCapacity: 4];
[info setObject: address forKey: NSFileHandleNotificationDataItem];
if (shost == nil)