diff options
author | kenshin <foufou33@gmail.com> | 2014-12-15 14:13:01 -0500 |
---|---|---|
committer | kenshin <foufou33@gmail.com> | 2014-12-15 17:41:56 -0500 |
commit | b0b31904b50218c17dad7b9d893d3b6ab7a26bfa (patch) | |
tree | 1ae688bca652398d217c8e4d5f49c4e2e61636c3 | |
parent | 128f4a25a580449d413085ce95505aeaf6903ca4 (diff) | |
download | android_external_libusbx-stable/cm-13.0-ZNH0E.tar.gz android_external_libusbx-stable/cm-13.0-ZNH0E.tar.bz2 android_external_libusbx-stable/cm-13.0-ZNH0E.zip |
fix build on linuxHEADreplicant-6.0-0004-transitionreplicant-6.0-0004-rc6replicant-6.0-0004-rc5-transitionreplicant-6.0-0004-rc5replicant-6.0-0004-rc4replicant-6.0-0004-rc3replicant-6.0-0004-rc2replicant-6.0-0004-rc1replicant-6.0-0004replicant-6.0-0003replicant-6.0-0002replicant-6.0-0001staging/cm-12.1stable/cm-13.0-ZNH5Ystable/cm-13.0-ZNH2KBstable/cm-13.0-ZNH2Kstable/cm-13.0-ZNH0Estable/cm-12.1-YOG7Dstable/cm-12.1-YOG4Pstable/cm-12.1-YOG3Cstable/cm-12.0-YNG4Nstable/cm-12.0-YNG3Cstable/cm-12.0-YNG1TAstable/cm-12.0-YNG1Tstable/cm-12.0-YNG1Icm-13.0cm-12.1cm-12.0
Change-Id: If8bcf74c828302b4f9bb90b1641579c5fd046c44
-rw-r--r-- | libusb/Android.mk | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/libusb/Android.mk b/libusb/Android.mk index dfa4213..d0013d2 100644 --- a/libusb/Android.mk +++ b/libusb/Android.mk @@ -34,10 +34,13 @@ LOCAL_SRC_FILES:= \ LOCAL_C_INCLUDES += \ external/libusbx/ \ external/libusbx/libusb/ \ - external/libusbx/libusb/os + external/libusbx/libusb/os \ + external/libnl/include/ +LOCAL_CFLAGS := -D_SHARED_LIBRARY_ ifeq ($(HOST_OS),linux) - LOCAL_SRC_FILES += os/linux_usbfs.c os/threads_posix.c os/poll_posix.c + LOCAL_SRC_FILES += os/linux_usbfs.c os/threads_posix.c os/poll_posix.c os/linux_netlink.c + LOCAL_CFLAGS += -DHAVE_LINUX_NETLINK_H endif ifeq ($(HOST_OS),darwin) @@ -49,7 +52,6 @@ ifeq ($(HOST_OS),windows) endif -LOCAL_CFLAGS := -D_SHARED_LIBRARY_ LOCAL_MODULE_TAGS:= optional LOCAL_MODULE:= libusbx include $(BUILD_HOST_STATIC_LIBRARY) |