build: do not reply on header checking libinotify.h
authorMarcel Hollerbach <mail@marcel-hollerbach.de>
Sun, 3 Mar 2019 15:30:53 +0000 (16:30 +0100)
committerYeongjong Lee <yj34.lee@samsung.com>
Tue, 2 Apr 2019 03:45:17 +0000 (12:45 +0900)
but rather use the sys_bsd flag. The reason why relying on the header
existance is bad, is that bsd decided to install this header, with the
essential difference, that on bsd we require to link against libinotify,
which makes the compilation fail.

ref T7710

Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Differential Revision: https://phab.enlightenment.org/D8093

src/lib/ecore_file/meson.build

index 09ac25f..727c3d3 100644 (file)
@@ -11,7 +11,7 @@ ecore_file_src = [
 
 if sys_windows == true
   ecore_file_src += [ 'ecore_file_monitor_win32.c']
-elif cc.has_header('sys/inotify.h')
+elif sys_linux == true
   ecore_file_src += [ 'ecore_file_monitor_inotify.c']
 else
   ecore_file_src += [ 'ecore_file_monitor_poll.c']