- client: Android-related tweaks, from Joachim

svn path=/trunk/boinc/; revision=26007
This commit is contained in:
David Anderson 2012-08-11 04:52:53 +00:00
parent 0129c1c53d
commit afb86208d3
4 changed files with 12 additions and 6 deletions

View File

@ -5425,3 +5425,12 @@ David 10 Aug 2012
sched/
sched_util.cpp
David 10 Aug 2012
- client: Android-related tweaks, from Joachim
client/
main.cpp
lib/
synch.cpp
android_log.h

View File

@ -380,7 +380,6 @@ int main(int argc, char** argv) {
int retval = 0;
#ifdef ANDROID
chdir(CWD); //CWD defined at lib/android_log.h
char ccwd[1024];
getcwd(ccwd, sizeof(ccwd));
char msg[1024];

View File

@ -20,5 +20,3 @@
#define LOG_TAG "BOINC"
#define LOGI(...) __android_log_print(ANDROID_LOG_INFO,LOG_TAG, __VA_ARGS__)
#define LOGD(...) __android_log_print(ANDROID_LOG_DEBUG, LOG_TAG, __VA_ARGS__)
//setup cwd
#define CWD "/data/data/edu.berkeley.boinc/client"

View File

@ -18,9 +18,9 @@
// interfaces for accessing sempahores
#include "synch.h"
#ifdef HAVE_SYS_SEM_H
#ifndef ANDROID //disabled on Android
#include "synch.h"
#include "config.h"
#include <cstdio>
@ -114,4 +114,4 @@ int get_key(char* path, int id, key_t& key) {
return 0;
}
#endif //ANDROID
#endif //HAVE_SYS_SEM_H