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

Add check to detect clock_nanosleep() in librt
pull/35/merge
Marc Kleine-Budde 2016-12-20 15:06:23 +01:00 committed by GitHub
commit c3305fdd51
1 changed files with 2 additions and 0 deletions

View File

@ -73,6 +73,8 @@ AC_CHECK_FUNCS([ \
strtoul \ 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_CHECK_DECL(SO_RXQ_OVFL,,
[AC_DEFINE([SO_RXQ_OVFL], [40], [SO_RXQ_OVFL])] [AC_DEFINE([SO_RXQ_OVFL], [40], [SO_RXQ_OVFL])]