--- src/dvb/dvbdevice_linux.cpp.orig 2016-05-03 12:36:58.011789000 +0200 +++ src/dvb/dvbdevice_linux.cpp 2016-05-03 12:41:02.658341000 +0200 @@ -35,7 +35,9 @@ #include #include #include +#if ! (defined __FreeBSD__ || defined __DragonFly__) #include +#endif #include #include #include @@ -854,8 +856,10 @@ runstate = 1; +#if ! (defined __FreeBSD__ || defined __DragonFly__) ifd = inotify_init(); inotify_add_watch(ifd, "/dev/dvb", IN_CREATE|IN_DELETE); +#endif fcntl(ifd, F_SETFL, O_NONBLOCK); pfd.fd = ifd; pfd.events = POLLIN;