From d7d830fa081696c407996b308626d8d6c3a09618 Mon Sep 17 00:00:00 2001 From: Dominik Riebeling Date: Sun, 29 May 2011 17:32:49 +0000 Subject: [PATCH] Fix an implicit declaration warning. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29930 a1c6a512-1295-4272-9138-f99709370657 --- firmware/target/hosted/android/button-android.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/firmware/target/hosted/android/button-android.c b/firmware/target/hosted/android/button-android.c index 051a5b574e..61d7256a11 100644 --- a/firmware/target/hosted/android/button-android.c +++ b/firmware/target/hosted/android/button-android.c @@ -28,6 +28,7 @@ #include "kernel.h" #include "system.h" #include "touchscreen.h" +#include "powermgmt.h" extern JNIEnv *env_ptr; static int last_y, last_x; @@ -84,7 +85,7 @@ Java_org_rockbox_RockboxFramebuffer_buttonHandler(JNIEnv*env, jclass class, } if (!button) - { + { button = key_to_button(keycode); } @@ -103,7 +104,7 @@ Java_org_rockbox_RockboxFramebuffer_buttonHandler(JNIEnv*env, jclass class, last_btns &= (~button); return false; } - + return true; }