Check for clock_nanosleep so mtime compiles (linking is another matter)
[vlc.git] / extras / buildsystem / cmake / include / config.cmake
index 5425556..a01f5c7 100644 (file)
@@ -78,6 +78,7 @@ find_library(HAVE_ICONV iconv)
 set( ICONV_CONST " " )
 
 check_library_exists(dl dlopen "" HAVE_DL_DLOPEN)
+check_library_exists(rt clock_nanosleep "" HAVE_CLOCK_NANOSLEEP)
 
 ###########################################################
 # Other check