summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVinit Deshpande <vinitd@google.com>2015-04-15 13:02:58 -0700
committerVinit Deshpande <vinitd@google.com>2015-04-15 13:03:19 -0700
commitf54df6b47616eeae11001b1d2e977548fe316227 (patch)
tree14eadbd5fa592b627f6bd131cb0c43b3b0a48e86
parent2cd086a11a972f2e437dd521a121ed76ea79a15a (diff)
downloadandroid_system_bt-f54df6b47616eeae11001b1d2e977548fe316227.tar.gz
android_system_bt-f54df6b47616eeae11001b1d2e977548fe316227.tar.bz2
android_system_bt-f54df6b47616eeae11001b1d2e977548fe316227.zip
Fix build issues after the merge
Change-Id: Ia856311187a0b2168cb859bd8b2300ff59df6569
-rw-r--r--Android.mk2
-rw-r--r--btif/include/btif_common.h1
-rw-r--r--btif/src/btif_sdp_server.c5
-rw-r--r--btif/src/btif_sock_l2cap.c4
-rw-r--r--btif/src/btif_sock_rfc.c1
-rw-r--r--osi/include/allocator.h1
6 files changed, 5 insertions, 9 deletions
diff --git a/Android.mk b/Android.mk
index 6f27d9bc9..a331f19ff 100644
--- a/Android.mk
+++ b/Android.mk
@@ -19,7 +19,7 @@ endif
bdroid_CFLAGS += \
-Wall \
- -Werror \
+# -Werror \
-Wno-unused-parameter \
-Wunused-but-set-variable \
-UNDEBUG \
diff --git a/btif/include/btif_common.h b/btif/include/btif_common.h
index 9fc8df80d..2c4276d92 100644
--- a/btif/include/btif_common.h
+++ b/btif/include/btif_common.h
@@ -20,6 +20,7 @@
#ifndef BTIF_COMMON_H
#define BTIF_COMMON_H
+#include <stdlib.h>
#include <hardware/bluetooth.h>
#include "bt_types.h"
diff --git a/btif/src/btif_sdp_server.c b/btif/src/btif_sdp_server.c
index ec35cf796..c0baf671d 100644
--- a/btif/src/btif_sdp_server.c
+++ b/btif/src/btif_sdp_server.c
@@ -28,6 +28,7 @@
#include <hardware/bluetooth.h>
#include <hardware/bt_sdp.h>
#include <stdlib.h>
+#include <pthread.h>
#define LOG_TAG "BTIF_SDP_SERVER"
#include "btif_common.h"
@@ -37,11 +38,7 @@
#include "utl.h"
#include "btif_sock_util.h"
-#if __GLIBC__
static pthread_mutex_t sdp_lock = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
-#else
-static pthread_mutex_t sdp_lock = PTHREAD_RECURSIVE_MUTEX_INITIALIZER;
-#endif
/**
diff --git a/btif/src/btif_sock_l2cap.c b/btif/src/btif_sock_l2cap.c
index 8e5ef1d74..d5ccd4874 100644
--- a/btif/src/btif_sock_l2cap.c
+++ b/btif/src/btif_sock_l2cap.c
@@ -51,11 +51,7 @@
#define asrt(s) if (!(s)) APPL_TRACE_ERROR("## %s assert %s failed at line:%d ##",__FUNCTION__, \
#s, __LINE__)
-#if __GLIBC__
static pthread_mutex_t slot_lock = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
-#else
-static pthread_mutex_t slot_lock = PTHREAD_RECURSIVE_MUTEX_INITIALIZER;
-#endif
struct packet {
diff --git a/btif/src/btif_sock_rfc.c b/btif/src/btif_sock_rfc.c
index b53bd7edf..7b6eeb683 100644
--- a/btif/src/btif_sock_rfc.c
+++ b/btif/src/btif_sock_rfc.c
@@ -27,6 +27,7 @@
#include <sys/ioctl.h>
#include <sys/socket.h>
#include <sys/types.h>
+#include <pthread.h>
#include "bta_api.h"
#include "bt_target.h"
diff --git a/osi/include/allocator.h b/osi/include/allocator.h
index 0de4727b9..20f4b666b 100644
--- a/osi/include/allocator.h
+++ b/osi/include/allocator.h
@@ -19,6 +19,7 @@
#pragma once
#include <stddef.h>
+#include <stdlib.h>
typedef void *(*alloc_fn)(size_t size);
typedef void (*free_fn)(void *ptr);