Commit 071f9555 authored by Philipp Erhardt's avatar Philipp Erhardt

Fix inotify: don't use it on non-linux machines

parent 20444dfc
......@@ -4,7 +4,9 @@
#include <csignal>
#include <cerrno>
#include <unistd.h>
#ifdef __linux__
#include <sys/inotify.h>
#endif
#include "viewer.h"
#include "resourcemanager.h"
#include "canvas.h"
......@@ -112,8 +114,10 @@ Viewer::Viewer(QString _file, QWidget *parent) :
}
Viewer::~Viewer() {
#ifdef __linux__
::close(inotify_fd);
delete i_notifier;
#endif
::close(sig_fd[0]);
::close(sig_fd[1]);
delete sig_notifier;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment