mirror of
https://github.com/obgm/libcoap.git
synced 2026-12-02 02:47:09 +03:00
Check if clock_gettime() needs librt
According to the manuals, clock_gettime() requires linking with -lrt for glibc versions before 2.17.
This commit is contained in:
1 parent
435f5df7b4
commit
ffeea0292a
1 file changed
+3
@@ -267,6 +267,9 @@ AC_FUNC_MALLOC
|
||||
AC_CHECK_FUNCS([memset select socket strcasecmp strrchr getaddrinfo \
|
||||
strnlen])
|
||||
|
||||
# Check if clock_gettime() requires librt, when available
|
||||
AC_SEARCH_LIBS([clock_gettime], [rt])
|
||||
|
||||
AC_MSG_CHECKING([operating system])
|
||||
|
||||
case $host in
|
||||
|
||||
Reference in new issue
Block a user