summaryrefslogtreecommitdiff
path: root/lib
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
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')
-rw-r--r--lib/intel_drm.c4
-rw-r--r--lib/intel_mmio.c4
-rw-r--r--lib/intel_pci.c4
3 files changed, 12 insertions, 0 deletions
diff --git a/lib/intel_drm.c b/lib/intel_drm.c
index 42cad3eb..4a919d3e 100644
--- a/lib/intel_drm.c
+++ b/lib/intel_drm.c
@@ -36,7 +36,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>
#ifdef HAVE_STRUCT_SYSINFO_TOTALRAM
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>
diff --git a/lib/intel_pci.c b/lib/intel_pci.c
index 150434ae..08fac3e3 100644
--- a/lib/intel_pci.c
+++ b/lib/intel_pci.c
@@ -33,7 +33,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>