summaryrefslogtreecommitdiff
path: root/lib/intel_mmio.c
diff options
context:
space:
mode:
authorSateesh Kavuri <sateesh.kavuri@intel.com>2012-02-06 15:37:04 +0530
committerDaniel Vetter <daniel.vetter@ffwll.ch>2012-02-10 18:43:53 +0100
commitb39a74ba4ef36889465b03c93d3d4940b21af465 (patch)
tree99dd85e9cfe073fb5ffed182bb725830b9994655 /lib/intel_mmio.c
parent2065ca15fb5a5a5c4079f6c0cb6361a4052e4fdb (diff)
Added support for Android
Added the Android.mk file as per Android make system. Also had to modify the headers with the proper location for fcntl.h as per the Android bionic headers location Signed-off-by: Sateesh Kavuri <sateesh.kavuri@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'lib/intel_mmio.c')
-rw-r--r--lib/intel_mmio.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/intel_mmio.c b/lib/intel_mmio.c
index 19ea6ad8..a158b047 100644
--- a/lib/intel_mmio.c
+++ b/lib/intel_mmio.c
@@ -38,7 +38,11 @@
#include <err.h>
#include <assert.h>
#include <sys/ioctl.h>
+#ifdef ANDROID
+#include <fcntl.h>
+#else
#include <sys/fcntl.h>
+#endif
#include <sys/stat.h>
#include <sys/mman.h>