Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8b88eb36 authored by Josh Gao's avatar Josh Gao Committed by android-build-merger
Browse files

adb: turn darwin/windows builds back on, hopefully fix them. am: a9c0ac0c am: e4e1ed0e

am: ddf0740c

Change-Id: I82ec8fe1bd14a0e80bd4cd57ca4958d5999eea3a
parents 3bd49af1 ddf0740c
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -82,9 +82,7 @@ ifeq ($(USE_SYSDEPS_WIN32),)
	LOCAL_STATIC_LIBRARIES += libcutils
endif

ifneq ($(HOST_OS),windows)
include $(BUILD_HOST_EXECUTABLE)
endif

$(call dist-for-goals,dist_files sdk,$(LOCAL_BUILT_MODULE))

+7 −5
Original line number Diff line number Diff line
@@ -30,11 +30,13 @@
#define  TRACE_TAG  TRACE_SOCKETS
#include "adb.h"

#if defined(__BIONIC__)
#define PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP PTHREAD_RECURSIVE_MUTEX_INITIALIZER
#endif

static pthread_mutex_t socket_list_lock = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
static pthread_mutex_t socket_list_lock;
static void __attribute__((constructor)) socket_list_lock_init(void) {
  pthread_mutexattr_t attr;
  pthread_mutexattr_init(&attr);
  pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
  pthread_mutex_init(&socket_list_lock, &attr);
}

int sendfailmsg(int fd, const char *reason)
{