From 1df1c62d9abfcbc9734c187e10a8d22b9c4cca90 Mon Sep 17 00:00:00 2001 From: richard Date: Fri, 27 Nov 1998 20:39:08 +0000 Subject: [PATCH] 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 --- Source/NSPortNameServer.m | 5 +++++ Tools/gdomap.h | 5 +++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/Source/NSPortNameServer.m b/Source/NSPortNameServer.m index f85e5ba20..7f500eed7 100644 --- a/Source/NSPortNameServer.m +++ b/Source/NSPortNameServer.m @@ -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]; } diff --git a/Tools/gdomap.h b/Tools/gdomap.h index 619533836..cdcdae586 100644 --- a/Tools/gdomap.h +++ b/Tools/gdomap.h @@ -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 */