diff options
| author | kenshin <foufou33@gmail.com> | 2014-12-15 14:13:01 -0500 |
|---|---|---|
| committer | Tim Schumacher <timschumi@gmx.de> | 2018-06-18 06:10:27 +0200 |
| commit | f50c49f8307e0805a8ee985644f557be1dbf6aa6 (patch) | |
| tree | 1ae688bca652398d217c8e4d5f49c4e2e61636c3 /libusb | |
| parent | 128f4a25a580449d413085ce95505aeaf6903ca4 (diff) | |
| download | android_external_libusbx-cm-11.0.tar.gz android_external_libusbx-cm-11.0.tar.bz2 android_external_libusbx-cm-11.0.zip | |
fix build on linuxcm-11.0
Change-Id: If8bcf74c828302b4f9bb90b1641579c5fd046c44
Diffstat (limited to 'libusb')
| -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) |
