Solaris derivatives no longer need librt for clock_gettime()

This commit is contained in:
Gerhard Rieger 2022-10-29 22:41:54 +02:00
parent 2702fef723
commit 4388f4b774
2 changed files with 6 additions and 4 deletions

View file

@ -72,12 +72,15 @@ Porting:
Filan: Solaris has the open file path infos in /proc/<pid>/path/
Thanks to Andy Fiddaman to directing me to the patch.
Filan now recognizes and prints Solaris doors and event ports.
Solaris derivatives no longer need librt for clock_gettime()
Thanks to Andy Fiddaman to directing me to the patch.
Features:
Filan prints target of symlink when appropriate
Test: FILANSYMLINK
Filan now recognizes and prints Solaris doors and event ports.
Testing:
Unset SOCAT_MAIN_WAIT on informational Socat calls

View file

@ -1516,8 +1516,7 @@ AC_CHECK_LIB(util, openpty,
AC_CHECK_PROTOTYPE_LIB(gettimeofday)
AC_CHECK_LIB(rt, clock_gettime,
[LIBS="-lrt $LIBS"; AC_DEFINE(HAVE_CLOCK_GETTIME)])
AC_CHECK_FUNC(clock_gettime, AC_DEFINE(HAVE_CLOCK_GETTIME), AC_CHECK_LIB(rt, clock_gettime, [LIBS="-lrt $LIBS"; AC_DEFINE(HAVE_CLOCK_GETTIME)]))
dnl Search for flock()
# with Linux it's in libc, with AIX in libbsd