mirror of
https://github.com/RPCS3/libusb.git
synced 2026-07-19 12:54:36 -04:00
configure.ac: fix detection of clock_gettime library
glibc before 2.17 requires link with librt for clock_gettime(). The
AC_SEARCH_LIBS check in configure.ac should detect this dependency.
Unfortunately commit cb77a25e51 (configure.ac: Remove obsolete AC_ERROR
and make formatting consistent) inadvertently renamed to clock_gettime2,
thus breaking librt detection.
Restore the correct clock_gettime() name.
Closes #439
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Nathan Hjelm <hjelmn@lanl.gov>
This commit is contained in:
committed by
Nathan Hjelm
parent
044a7eeb75
commit
552a4a49af
+1
-1
@@ -107,7 +107,7 @@ case $backend in
|
||||
linux)
|
||||
AC_DEFINE(OS_LINUX, 1, [Linux backend])
|
||||
AC_SUBST(OS_LINUX)
|
||||
AC_SEARCH_LIBS([clock_gettime2], [rt], [], [], [-pthread])
|
||||
AC_SEARCH_LIBS([clock_gettime], [rt], [], [], [-pthread])
|
||||
AC_ARG_ENABLE([udev],
|
||||
[AC_HELP_STRING([--enable-udev], [use udev for device enumeration and hotplug support (recommended) [default=yes]])],
|
||||
[], [enable_udev=yes])
|
||||
|
||||
@@ -1 +1 @@
|
||||
#define LIBUSB_NANO 11316
|
||||
#define LIBUSB_NANO 11317
|
||||
|
||||
Reference in New Issue
Block a user