summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2015-02-21 21:35:16 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2015-02-21 21:35:17 +0000
commit33ae28bf3d7a3ffd00cad80284be2ac33155a7f3 (patch)
tree834082ea4b964b4c74499691709b62ef4b063dba
parent66896fd9f7716e027cec2060d05eca45e491c401 (diff)
parent72c36ece210a21f2816ac91e9424006e0d11310f (diff)
downloadandroid_device_generic_goldfish-33ae28bf3d7a3ffd00cad80284be2ac33155a7f3.tar.gz
android_device_generic_goldfish-33ae28bf3d7a3ffd00cad80284be2ac33155a7f3.tar.bz2
android_device_generic_goldfish-33ae28bf3d7a3ffd00cad80284be2ac33155a7f3.zip
Merge "Fix implicit function declarations in goldfish."
-rw-r--r--qemud/qemud.c1
-rw-r--r--vibrator/vibrator_qemu.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/qemud/qemud.c b/qemud/qemud.c
index 543ce35..3d18893 100644
--- a/qemud/qemud.c
+++ b/qemud/qemud.c
@@ -7,6 +7,7 @@
#include <string.h>
#include <sys/socket.h>
#include <termios.h>
+#include <unistd.h>
#include <cutils/sockets.h>
/*
diff --git a/vibrator/vibrator_qemu.c b/vibrator/vibrator_qemu.c
index 46c30b4..5e2dc9a 100644
--- a/vibrator/vibrator_qemu.c
+++ b/vibrator/vibrator_qemu.c
@@ -19,6 +19,7 @@
#include <cutils/log.h>
+#define QEMU_HARDWARE
#include <qemu.h>
#include <hardware/hardware.h>
#include <hardware/vibrator.h>