diff --git a/api/boinc_api.cpp b/api/boinc_api.cpp index d81fbb5396..0f75c6c3ab 100644 --- a/api/boinc_api.cpp +++ b/api/boinc_api.cpp @@ -180,6 +180,12 @@ static int setup_shared_mem() { delete app_client_shm; app_client_shm = NULL; } +#else +#ifdef __EMX__ + if (attach_shmem(aid.shmem_seg_name, (void**)&app_client_shm->shm)) { + delete app_client_shm; + app_client_shm = NULL; + } #else if (aid.shmem_seg_name == -1) { // Version 6 Unix/Linux/Mac client @@ -188,12 +194,13 @@ static int setup_shared_mem() { app_client_shm = NULL; } } else { - // EMX or version 5 Unix/Linux/Mac client + // version 5 Unix/Linux/Mac client if (attach_shmem(aid.shmem_seg_name, (void**)&app_client_shm->shm)) { delete app_client_shm; app_client_shm = NULL; } } +#endif #endif // ! _WIN32 if (app_client_shm == NULL) return -1; return 0; diff --git a/checkin_notes b/checkin_notes index b3d8961d5f..a1da291308 100644 --- a/checkin_notes +++ b/checkin_notes @@ -674,3 +674,9 @@ David 23 Jan 2009 html/user/ apps.php + +David 23 Jan 2009 + - API: possible compile fix for OS/2 + + api/ + boinc_api.cpp