From d269036df3507a2edd0da7c747adc0efd47a4cc0 Mon Sep 17 00:00:00 2001 From: Charlie Fenton Date: Tue, 4 Sep 2007 07:40:18 +0000 Subject: [PATCH] V6 GFX: Fix bug on OS 10.3.9 svn path=/trunk/boinc/; revision=13532 --- api/graphics2_unix.C | 10 ++++++++++ api/graphics2_util.C | 12 ++++++------ 2 files changed, 16 insertions(+), 6 deletions(-) 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