mirror of
https://github.com/linux-can/can-utils.git
synced 2026-08-05 06:20:00 +02:00
Merge pull request #36 from rahul-bedarkar/fix-build-with-glibc
Add check to detect clock_nanosleep() in librt
This commit is contained in:
@@ -73,6 +73,8 @@ AC_CHECK_FUNCS([ \
|
||||
strtoul \
|
||||
])
|
||||
|
||||
# glibc versions before 2.17 needs to link with -lrt for clock_nanosleep
|
||||
AC_SEARCH_LIBS([clock_nanosleep], [rt])
|
||||
|
||||
AC_CHECK_DECL(SO_RXQ_OVFL,,
|
||||
[AC_DEFINE([SO_RXQ_OVFL], [40], [SO_RXQ_OVFL])]
|
||||
|
||||
Reference in New Issue
Block a user