Changed default path for lock file on Android.
authorMitar <mitar@tnode.com>
Mon, 28 Jun 2010 01:45:51 +0000 (03:45 +0200)
committerMitar <mitar@tnode.com>
Mon, 28 Jun 2010 01:45:51 +0000 (03:45 +0200)
src/main.c

index eba8e7f..96a7e48 100644 (file)
@@ -80,7 +80,9 @@ bool olsr_win32_end_flag = false;
 static void olsr_shutdown(int) __attribute__ ((noreturn));
 #endif
 
-#if defined linux || __FreeBSD__ || defined __NetBSD__ || defined __OpenBSD__
+#if defined android
+#define DEFAULT_LOCKFILE_PREFIX "/data/local"
+#elif defined linux || __FreeBSD__ || defined __NetBSD__ || defined __OpenBSD__
 #define DEFAULT_LOCKFILE_PREFIX "/var/run/olsrd"
 #elif defined WIN32
 #define DEFAULT_LOCKFILE_PREFIX "C:\\olsrd"