diff --git a/api/graphics2_unix.C b/api/graphics2_unix.C index 29cfcd5c09..e71387f9dd 100644 --- a/api/graphics2_unix.C +++ b/api/graphics2_unix.C @@ -22,6 +22,8 @@ static int clicked_button; static int win=0; #ifdef __APPLE__ +#include // for MAXPATHLEN + static bool need_show = false; #endif @@ -138,6 +140,10 @@ static void timer_handler(int) { } void boinc_graphics_loop(int argc, char** argv) { +#ifdef __APPLE__ + char dir [MAXPATHLEN]; + getcwd(dir, MAXPATHLEN); +#endif for (int i=1; i