mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
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:
parent
63d21b0c29
commit
ca7f4b60d3
2 changed files with 8 additions and 2 deletions
|
@ -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];
|
||||
}
|
||||
|
|
|
@ -214,8 +214,9 @@ typedef struct {
|
|||
* gdomap to another port, you can uncomment the next #define to
|
||||
* run gdomap on port 6006 (or modify this to a port of your choice).
|
||||
*
|
||||
* When you have done this you must recompile gdomap.c and TcpPort.m
|
||||
* and re-install the base library with the new TcpPort.o
|
||||
* When you have done this you must recompile gdomap.c and
|
||||
* NSPortNameServer.m and re-install the base library with
|
||||
* the new NSPortNameServer.o
|
||||
*/
|
||||
/* #define GDOMAP_PORT_OVERRIDE 6006 */
|
||||
|
||||
|
|
Loading…
Reference in a new issue