Add conditionnal inotify support

Thanks to Francois Andriot
(cherry picked from commit af8d937e62)
v3.5.13-sru
Slávek Banko 10 years ago
parent ecd24e4f3c
commit 4ad314fae0
  1. 1
      CMakeLists.txt
  2. 4
      ConfigureChecks.cmake

@ -54,6 +54,7 @@ option( WITH_NJB "Enable njb support" OFF )
option( WITH_MTP "Enable mtp support" OFF )
option( WITH_RIOKARMA "Enable riokarma support" OFF )
option( WITH_DAAP "Enable daap support" OFF )
option( WITH_INOTIFY "Enable inotify support" OFF )
##### user requested modules ####################

@ -24,7 +24,7 @@ check_include_file( systems.h HAVE_SYSTEMS_H )
##### check for inotify ###########################
# if( WITH_INOTIFY )
if( WITH_INOTIFY )
check_include_file( "inotify.h" INOTIFY_FOUND )
check_include_file( "sys/inotify.h" INOTIFY_SYS_FOUND )
if( NOT INOTIFY_FOUND )
@ -39,7 +39,7 @@ check_include_file( systems.h HAVE_SYSTEMS_H )
set( HAVE_INOTIFY 1 )
set( HAVE_SYS_INOTIFY 1 )
endif( INOTIFY_SYS_FOUND )
# endif( )
endif( )
check_function_exists( statvfs HAVE_STATVFS )

Loading…
Cancel
Save