aboutsummaryrefslogtreecommitdiffstats
path: root/libbridge/libbridge_devif.c
diff options
context:
space:
mode:
authorNiranjan Pendharkar <npendhar@codeaurora.org>2013-02-08 14:09:13 -0800
committerNiranjan Pendharkar <npendhar@codeaurora.org>2013-02-08 14:34:44 -0800
commit8a5f846f83556370f8c69b8573ebd7ceb01653f7 (patch)
tree33a50a21940ba01cefbf41af94fcf7a9e04972a3 /libbridge/libbridge_devif.c
parent1736fa987eb6b66b6eaedbc1cd3df4f48b873721 (diff)
downloadandroid_external_brctl-8a5f846f83556370f8c69b8573ebd7ceb01653f7.tar.gz
android_external_brctl-8a5f846f83556370f8c69b8573ebd7ceb01653f7.tar.bz2
android_external_brctl-8a5f846f83556370f8c69b8573ebd7ceb01653f7.zip
brctl: Add Android makefiles to build on Android
This patch adds makefiles to build this open source tool on Android. This patch also addresses some compatibilty issues between GNU C and bionic C implementation. Change-Id: Ic35ab4f98d5f252d53e92c6cde43f0673cef9d4a
Diffstat (limited to 'libbridge/libbridge_devif.c')
-rw-r--r--libbridge/libbridge_devif.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/libbridge/libbridge_devif.c b/libbridge/libbridge_devif.c
index 1e83925..99a0de0 100644
--- a/libbridge/libbridge_devif.c
+++ b/libbridge/libbridge_devif.c
@@ -23,8 +23,11 @@
#include <errno.h>
#include <string.h>
#include <dirent.h>
+#ifndef FEATURE_ANDROID
#include <sys/fcntl.h>
-
+#else
+#include <fcntl.h>
+#endif
#include "libbridge.h"
#include "libbridge_private.h"