Commit graph

10 commits

Author SHA1 Message Date
Chris Dickens
068b594306 core: Remove use of gettimeofday()
Prior to this commit, gettimeofday() was being used for timestamps
in debug messages. This function has been marked as deprecated in
the latest POSIX specification and furthermore is not supported on
Windows, thus requiring our own implementation as usbi_gettimeofday().

This commit changes the logging code to obtain timestamps using the
clock_gettime() function provided by the backend. The implementation of
usbi_gettimeofday() for Windows was actually equivalent to that of the
USBI_CLOCK_REALTIME implementation for clock_gettime(), so this
eliminates code duplication. In addition, the USBI_CLOCK_REALTIME
implementation has been updated for Windows to leverage the
timespec_get() function available in VS 2015 and later.

Signed-off-by: Chris Dickens <christopher.a.dickens@gmail.com>
2017-01-12 15:03:16 -08:00
Chris Dickens
80f1657f06 core: Remove check for and inclusion of signal.h
Signed-off-by: Chris Dickens <christopher.a.dickens@gmail.com>
2017-01-12 15:02:59 -08:00
William Skellenger
ba9eef2f61 android: update README
Added other $ARCH

Signed-off-by: Ludovic Rousseau <ludovic.rousseau@free.fr>
2016-03-06 21:45:02 +01:00
William Skellenger
8b42622b07 android: Fix typo in README
Remove the /sdcard copy and not the /system/lib copy

Signed-off-by: Ludovic Rousseau <ludovic.rousseau@free.fr>
2016-03-06 21:44:51 +01:00
hjelmn@cs.unm.edu
1eff220474 Misc: Revert all references to libusb/libusb.info 2014-01-08 23:51:01 +00:00
Kuangye Guo
7e3de5de09 Android: Add support for Linux/Android platforms
* Closes #154
2013-12-28 23:03:32 +00:00
Andrew Fernandes
650e22508f Android: Build for all Android architectures
* Don't limit support to ARM only (adds MIPS support)
* Also add a workaround for a MIPS NDK linker bug
* Also add a gitignore entry required to run bootstrap.sh on OS X
* Closes #134
2013-12-28 22:58:06 +00:00
Toby Gray
0837c479dc Android: Add further documentation to Android README file
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
2013-08-21 16:27:03 +02:00
Toby Gray
c632101790 Android: Add examples and stress tests 2013-08-11 22:14:13 +01:00
Toby Gray
7bfbb8b331 Android: Add formal Android support
* Also fix an issue with LIBUSB_LOG_LEVEL_NONE
2013-08-11 22:12:03 +01:00