Project import generated by Copybara.
GitOrigin-RevId: 159fd0c323af332328758fb4be5782462b0d31a0
diff --git a/.gitignore b/.gitignore
deleted file mode 100644
index 81bcb81..0000000
--- a/.gitignore
+++ /dev/null
@@ -1,51 +0,0 @@
-.deps
-.libs
-Makefile
-Makefile.in
-*.la
-*.lo
-*.o
-libtool
-ltmain.sh
-missing
-stamp-h1
-m4/
-autom4te.cache
-install-sh
-depcomp
-configure
-aclocal.m4
-compile
-config.guess
-config.h*
-!msvc/config.h
-config.log
-config.status
-config.sub
-*.swp
-doxygen.cfg
-examples/listdevs
-examples/xusb
-examples/dpfp
-examples/dpfp_threaded
-examples/fxload
-examples/hotplugtest
-examples/sam3u_benchmark
-tests/stress
-*.exe
-*.pc
-doc/html
-*.plg
-*.ncb
-*.opt
-Debug
-Release
-*.user
-*.suo
-*.sdf
-*.opensdf
-*.patch
-*~
-*.orig
-.dirstamp
-.amend
diff --git a/Android.mk b/Android.mk
index 9db4754..8a3de8d 100644
--- a/Android.mk
+++ b/Android.mk
@@ -49,73 +49,3 @@
liblog \
include $(BUILD_SHARED_LIBRARY)
-
-include $(CLEAR_VARS)
-
-LOCAL_MODULE := libusb-host
-
-LOCAL_SRC_FILES := \
- libusb/core.c \
- libusb/descriptor.c \
- libusb/hotplug.c \
- libusb/io.c \
- libusb/sync.c \
- libusb/strerror.c \
- libusb/os/linux_usbfs.c \
- libusb/os/poll_posix.c \
- libusb/os/threads_posix.c \
- libusb/os/linux_netlink.c \
-
-LOCAL_C_INCLUDES := \
- external/libusb/include/libusb \
- external/libusb/libusb \
- external/libusb/android \
-
-LOCAL_CFLAGS := \
- -Wall \
- -Wno-error=sign-compare \
- -Wno-error=switch \
- -v \
-
-LOCAL_SHARED_LIBRARIES := \
- liblog \
-
-LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include/libusb
-
-include $(BUILD_HOST_SHARED_LIBRARY)
-
-include $(CLEAR_VARS)
-
-### WARNING: since libusb is LGPL, this may only be used for INTERNAL-ONLY tools.
-### See http://go/thirdpartylicenses?cl=head#LinkingRequirements
-LOCAL_MODULE := libusb-static-host
-
-LOCAL_SRC_FILES := \
- libusb/core.c \
- libusb/descriptor.c \
- libusb/hotplug.c \
- libusb/io.c \
- libusb/sync.c \
- libusb/strerror.c \
- libusb/os/linux_usbfs.c \
- libusb/os/poll_posix.c \
- libusb/os/threads_posix.c \
- libusb/os/linux_netlink.c \
-
-LOCAL_C_INCLUDES := \
- external/libusb/include/libusb \
- external/libusb/libusb \
- external/libusb/android \
-
-LOCAL_CFLAGS := \
- -Wall \
- -Wno-error=sign-compare \
- -Wno-error=switch \
- -v \
-
-LOCAL_STATIC_LIBRARIES := \
- liblog \
-
-LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include/libusb
-
-include $(BUILD_HOST_STATIC_LIBRARY)
diff --git a/libusb/os/linux_netlink.c b/libusb/os/linux_netlink.c
index a0a2788..60cf3ad 100644
--- a/libusb/os/linux_netlink.c
+++ b/libusb/os/linux_netlink.c
@@ -21,7 +21,6 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#define _GNU_SOURCE
#include <config.h>
#include <assert.h>