Updated override of default name server port.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@3344 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 1998-11-27 20:39:08 +00:00
parent 63d21b0c29
commit ca7f4b60d3
2 changed files with 8 additions and 2 deletions

View file

@ -49,6 +49,7 @@
#define stringify_it(X) #X
#define make_gdomap_cmd(X) stringify_it(X) "/Tools/"GNUSTEP_TARGET_DIR"/gdomap &"
#define make_gdomap_err(X) "check that " stringify_it(X) "/Tools/"GNUSTEP_TARGET_DIR"/gdomap is running and owned by root."
#define make_gdomap_port(X) stringify_it(X)
/*
* Private methods for internal use only.
@ -89,6 +90,10 @@ static NSPortNameServer *defaultServer = nil;
{
serverLock = [NSRecursiveLock new];
modes = [[NSArray alloc] initWithObjects: &mode count: 1];
#ifdef GDOMAP_PORT_OVERRIDE
serverPort = [[NSString stringWithCString:
make_gdomap_port(GDOMAP_PORT_OVERRIDE)] retain];
#endif
}
[gnustep_global_lock unlock];
}