aboutsummaryrefslogtreecommitdiffstats
path: root/liblights
diff options
context:
space:
mode:
Diffstat (limited to 'liblights')
-rwxr-xr-xliblights/Android.mk1
-rw-r--r--liblights/lights.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/liblights/Android.mk b/liblights/Android.mk
index aaa3a96..d694fc0 100755
--- a/liblights/Android.mk
+++ b/liblights/Android.mk
@@ -21,6 +21,7 @@ include $(CLEAR_VARS)
LOCAL_SRC_FILES := lights.c
+LOCAL_CFLAGS := -Wall -Werror
LOCAL_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES)/hw
diff --git a/liblights/lights.c b/liblights/lights.c
index dc3fdb4..dcab8a3 100644
--- a/liblights/lights.c
+++ b/liblights/lights.c
@@ -19,6 +19,7 @@
#include <cutils/log.h>
#include <stdint.h>
+#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <fcntl.h>