* Source/NSMessagePort.m: For older OS comptibility, define some

macros if they are not already defined.
* Source/NSMessagePortNameServer.m: Idem.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/branches/freeze_1_8_0@17557 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Adam Fedor 2003-08-27 03:00:47 +00:00
parent 18e38aafdd
commit c55194ed8a
3 changed files with 25 additions and 0 deletions

View file

@ -1,3 +1,9 @@
2003-08-26 Adam Fedor <fedor@gnu.org>
* Source/NSMessagePort.m: For older OS comptibility, define some
macros if they are not already defined.
* Source/NSMessagePortNameServer.m: Idem.
2003-08-23 Adam Fedor <fedor@gnu.org>
* Version 1.7.3

View file

@ -100,6 +100,15 @@
#define close closesocket
#endif
/* Older systems (Solaris) compatibility */
#ifndef AF_LOCAL
#define AF_LOCAL AF_UNIX
#define PF_LOCAL PF_UNIX
#endif
#ifndef SUN_LEN
#define SUN_LEN(su) \
(sizeof(*(su)) - sizeof((su)->sun_path) + strlen((su)->sun_path))
#endif
static BOOL multi_threaded = NO;

View file

@ -15,6 +15,16 @@
#include <string.h>
#include <sys/un.h>
/* Older systems (Solaris) compatibility */
#ifndef AF_LOCAL
#define AF_LOCAL AF_UNIX
#define PF_LOCAL PF_UNIX
#endif
#ifndef SUN_LEN
#define SUN_LEN(su) \
(sizeof(*(su)) - sizeof((su)->sun_path) + strlen((su)->sun_path))
#endif
static NSRecursiveLock *serverLock = nil;
static NSMessagePortNameServer *defaultServer = nil;