From 4e14ef3660924e7c005c42d4d58716ee0beb2d31 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Sun, 10 Feb 2013 15:48:38 -0400 Subject: can now build Android targeted binary Various things that don't work on Android are just ifdefed out. * the webapp (needs template haskell for arm) * --include and --exclude globbing (needs libpcre, which is not ported; probably I'll make it use the pure haskell glob library instead) * annex.diskreserve checking (missing sys/statvfs.h) * timestamp preservation support (yawn) * S3 * WebDAV * XMPP The resulting 17mb binary has been tested on Android, and it is able to, at least, print its usage message. --- Utility/libmounts.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Utility/libmounts.h') diff --git a/Utility/libmounts.h b/Utility/libmounts.h index b65978629..76b2484d3 100644 --- a/Utility/libmounts.h +++ b/Utility/libmounts.h @@ -5,6 +5,10 @@ # include # define GETMNTINFO #else +#if defined WITH_ANDROID +# warning mounts listing code not available for Android +# define UNKNOWN +#else #if defined (__linux__) || defined (__FreeBSD_kernel__) /* Linux or Debian kFreeBSD */ #include @@ -14,6 +18,7 @@ # define UNKNOWN #endif #endif +#endif #include -- cgit v1.2.3