mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 00:11:26 +00:00
Use message ports if the runtime setting is for MacOS-X compatibility.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@19842 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
d4564c1581
commit
6d82d060ec
3 changed files with 15 additions and 2 deletions
|
@ -30,6 +30,7 @@
|
|||
#include "Foundation/NSPortNameServer.h"
|
||||
#include "Foundation/NSDebug.h"
|
||||
#include "Foundation/NSUserDefaults.h"
|
||||
#include "GSPrivate.h"
|
||||
|
||||
|
||||
/**
|
||||
|
@ -64,7 +65,8 @@
|
|||
+ (id) systemDefaultPortNameServer
|
||||
{
|
||||
/* Must be kept in sync with [NSPort +initialize]. */
|
||||
if ([[NSUserDefaults standardUserDefaults]
|
||||
if (GSUserDefaultsFlag(GSMacOSXCompatible) == YES
|
||||
|| [[NSUserDefaults standardUserDefaults]
|
||||
boolForKey: @"NSPortIsMessagePort"])
|
||||
{
|
||||
return [NSMessagePortNameServer sharedInstance];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue