opnsense-ports/multimedia/kaffeine/files/patch-dvbdevice_linux.cpp
Franco Fichtner 19f5749a3f */*: sync with upstream
Taken from: FreeBSD
2016-05-24 07:06:12 +02:00

23 lines
728 B
C++

--- 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 <sys/ioctl.h>
#include <sys/stat.h>
#include <dirent.h>
+#if ! (defined __FreeBSD__ || defined __DragonFly__)
#include <sys/inotify.h>
+#endif
#include <vector>
#include <stdlib.h>
#include <unistd.h>
@@ -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;