mac build compiles again

This commit is contained in:
Mitchell Livingston 2008-04-05 20:18:47 +00:00
parent b71a2985b3
commit a3bb61d13b
2 changed files with 3 additions and 2 deletions

View File

@ -195,7 +195,8 @@ void sleepCallBack(void * controller, io_service_t y, natural_t messageType, voi
{
fDefaults = [NSUserDefaults standardUserDefaults];
fLib = tr_initFull("macosx",
fLib = tr_initFull(NULL, /* use default config directory (Application Support) */
"macosx",
[fDefaults boolForKey: @"PEXGlobal"],
[fDefaults boolForKey: @"NatTraversal"],
[fDefaults integerForKey: @"BindPort"],

View File

@ -514,7 +514,7 @@ void getaddr( struct sockaddr_un * sun )
{
bzero( sun, sizeof *sun );
sun->sun_family = AF_LOCAL;
strlcpy( sun->sun_path, tr_getPrefsDirectory(), sizeof sun->sun_path );
strlcpy( sun->sun_path, tr_getDefaultConfigDir(), sizeof sun->sun_path );
strlcat( sun->sun_path, "/socket", sizeof sun->sun_path );
}