Re: [Xquartz-dev] Tiger fixes in 1.4.2-apple24
Am 28.11.2008 um 10:19 schrieb Jeremy Huddleston:
diff --git a/privileged_startx/server.c b/privileged_startx/server.c index d0356b5..86bfbf5 100644 --- a/privileged_startx/server.c +++ b/privileged_startx/server.c @@ -153,7 +153,7 @@ int server_main(const char *dir) {
mp = launch_data_get_machport(svc); #else - kr = bootstrap_check_in(bootstrap_port, bname, &mp); + kr = bootstrap_check_in(bootstrap_port, "org.x.X11", &mp); if (kr == KERN_SUCCESS) return mp;
This cures one problem. There is still this: server.c: In function ‘do_privileged_startx’: server.c:213: error: ‘idle_globals’ undeclared (first use in this function) server.c:213: error: (Each undeclared identifier is reported only once server.c:213: error: for each function it appears in.) server.c:216: warning: passing argument 1 of ‘fts_open’ from incompatible pointer type -- Greetings Pete <] o __o |__ o HPV, the real ___o /I -\<, |o \ -\),-% high speed! ___/\ /\___./ \___...O/ O____.....`-O-'-()--o_________________
On Nov 28, 2008, at 01:41, Peter Dyballa wrote:
server.c: In function ‘do_privileged_startx’: server.c:213: error: ‘idle_globals’ undeclared (first use in this function) server.c:213: error: (Each undeclared identifier is reported only once server.c:213: error: for each function it appears in.)
diff --git a/privileged_startx/server.c b/privileged_startx/server.c index d0356b5..bfe7ca4 100644 --- a/privileged_startx/server.c +++ b/privileged_startx/server.c @@ -153,7 +153,7 @@ int server_main(const char *dir) { mp = launch_data_get_machport(svc); #else - kr = bootstrap_check_in(bootstrap_port, bname, &mp); + kr = bootstrap_check_in(bootstrap_port, "org.x.X11", &mp); if (kr == KERN_SUCCESS) return mp; @@ -209,8 +209,10 @@ kern_return_t do_privileged_startx(mach_port_t test_port __attribute__((unused)) const char * path_argv[2] = {script_dir, NULL}; +#ifdef LAUNCH_JOBKEY_MACHSERVICES /* Store that we were called, so the idle timer will reset */ gettimeofday(&idle_globals.lastmsg, NULL); +#endif /* script_dir contains a set of files to run with root privs when X11 starts */ ftsp = fts_open(path_argv, FTS_PHYSICAL, ftscmp);
server.c:216: warning: passing argument 1 of ‘fts_open’ from incompatible pointer type
That's fine.
participants (2)
-
Jeremy Huddleston
-
Peter Dyballa