mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-31 16:50:58 +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
7b25702d5f
commit
1df1c62d9a
2 changed files with 8 additions and 2 deletions
|
@ -49,6 +49,7 @@
|
||||||
#define stringify_it(X) #X
|
#define stringify_it(X) #X
|
||||||
#define make_gdomap_cmd(X) stringify_it(X) "/Tools/"GNUSTEP_TARGET_DIR"/gdomap &"
|
#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_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.
|
* Private methods for internal use only.
|
||||||
|
@ -89,6 +90,10 @@ static NSPortNameServer *defaultServer = nil;
|
||||||
{
|
{
|
||||||
serverLock = [NSRecursiveLock new];
|
serverLock = [NSRecursiveLock new];
|
||||||
modes = [[NSArray alloc] initWithObjects: &mode count: 1];
|
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];
|
[gnustep_global_lock unlock];
|
||||||
}
|
}
|
||||||
|
|
|
@ -214,8 +214,9 @@ typedef struct {
|
||||||
* gdomap to another port, you can uncomment the next #define to
|
* 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).
|
* 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
|
* When you have done this you must recompile gdomap.c and
|
||||||
* and re-install the base library with the new TcpPort.o
|
* NSPortNameServer.m and re-install the base library with
|
||||||
|
* the new NSPortNameServer.o
|
||||||
*/
|
*/
|
||||||
/* #define GDOMAP_PORT_OVERRIDE 6006 */
|
/* #define GDOMAP_PORT_OVERRIDE 6006 */
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue