Merge pull request #36 from rahul-bedarkar/fix-build-with-glibc

Add check to detect clock_nanosleep() in librt
This commit is contained in:
Marc Kleine-Budde
2016-12-20 15:06:23 +01:00
committed by GitHub
+2
View File
@@ -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])]