diff --git a/hw/xquartz/X11Application.h b/hw/xquartz/X11Application.h index c42e6a5a2..a1be7514a 100644 --- a/hw/xquartz/X11Application.h +++ b/hw/xquartz/X11Application.h @@ -72,7 +72,7 @@ void X11ApplicationSetCanQuit (int state); void X11ApplicationServerReady (void); void X11ApplicationShowHideMenubar (int state); -void X11ApplicationMain(int argc, char **argv, void (*server_thread) (void *), void *server_arg); +void X11ApplicationMain(int argc, const char **argv, void (*server_thread) (void *), void *server_arg); extern int X11EnableKeyEquivalents; extern int quartzHasRoot, quartzEnableRootless; diff --git a/hw/xquartz/X11Application.m b/hw/xquartz/X11Application.m index 92a503b45..828cd30f2 100644 --- a/hw/xquartz/X11Application.m +++ b/hw/xquartz/X11Application.m @@ -790,7 +790,7 @@ environment?", @"Startup xinitrc dialog"); [X11App prefs_synchronize]; } -void X11ApplicationMain (int argc, char **argv, void (*server_thread) (void *), void *server_arg) { +void X11ApplicationMain (int argc, const char **argv, void (*server_thread) (void *), void *server_arg) { NSAutoreleasePool *pool; #ifdef DEBUG diff --git a/hw/xquartz/X11Controller.h b/hw/xquartz/X11Controller.h index bfbb04f8a..47f5220e4 100644 --- a/hw/xquartz/X11Controller.h +++ b/hw/xquartz/X11Controller.h @@ -78,4 +78,6 @@ #endif /* __OBJC__ */ +void X11ControllerMain(int argc, const char **argv, void (*server_thread) (void *), void *server_arg); + #endif /* X11CONTROLLER_H */ diff --git a/hw/xquartz/X11Controller.m b/hw/xquartz/X11Controller.m index ecd88abde..6b7c35141 100644 --- a/hw/xquartz/X11Controller.m +++ b/hw/xquartz/X11Controller.m @@ -741,3 +741,7 @@ objectValueForTableColumn:(NSTableColumn *)tableColumn row:(int)row } @end + +void X11ControllerMain(int argc, const char **argv, void (*server_thread) (void *), void *server_arg) { + X11ApplicationMain (argc, argv, server_thread, server_arg); +} diff --git a/hw/xquartz/quartzStartup.c b/hw/xquartz/quartzStartup.c index 50ce2a63e..8600ec8d9 100644 --- a/hw/xquartz/quartzStartup.c +++ b/hw/xquartz/quartzStartup.c @@ -35,7 +35,7 @@ #include #include #include "quartzCommon.h" -#include "X11Application.h" +#include "X11Controller.h" #include "darwin.h" #include "quartz.h" #include "opaque.h" @@ -106,6 +106,6 @@ void DarwinHandleGUI(int argc, char **argv, char **envp) { extern void _InitHLTB(void); _InitHLTB(); - X11ApplicationMain(argc, argv, server_thread, NULL); + X11ControllerMain(argc, argv, server_thread, NULL); exit(0); }