Use kqueue on NetBSD in qfilesystemwatcher.
Enable kqueue on NetBSD in qfilesystemwatcher. NetBSD has kqueue. http://netbsd.gw.com/cgi-bin/man-cgi?kqueue Change-Id: I6305a37df079c35b9a9b1f70c75ec00e05d25b47 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>
This commit is contained in:
parent
201bf9e673
commit
e6ffb36b55
@ -187,7 +187,7 @@ win32 {
|
||||
}
|
||||
|
||||
!nacl {
|
||||
freebsd-*|mac|darwin-*|openbsd-*:{
|
||||
freebsd-*|mac|darwin-*|openbsd-*|netbsd-*:{
|
||||
SOURCES += io/qfilesystemwatcher_kqueue.cpp
|
||||
HEADERS += io/qfilesystemwatcher_kqueue_p.h
|
||||
}
|
||||
|
@ -52,7 +52,7 @@
|
||||
# include "qfilesystemwatcher_win_p.h"
|
||||
#elif defined(USE_INOTIFY)
|
||||
# include "qfilesystemwatcher_inotify_p.h"
|
||||
#elif defined(Q_OS_FREEBSD) || defined(Q_OS_IOS)
|
||||
#elif defined(Q_OS_FREEBSD) || defined(Q_OS_NETBSD) || defined(Q_OS_IOS)
|
||||
# include "qfilesystemwatcher_kqueue_p.h"
|
||||
#elif defined(Q_OS_OSX)
|
||||
# include "qfilesystemwatcher_fsevents_p.h"
|
||||
@ -68,7 +68,7 @@ QFileSystemWatcherEngine *QFileSystemWatcherPrivate::createNativeEngine(QObject
|
||||
// there is a chance that inotify may fail on Linux pre-2.6.13 (August
|
||||
// 2005), so we can't just new inotify directly.
|
||||
return QInotifyFileSystemWatcherEngine::create(parent);
|
||||
#elif defined(Q_OS_FREEBSD) || defined(Q_OS_IOS)
|
||||
#elif defined(Q_OS_FREEBSD) || defined(Q_OS_NETBSD) || defined(Q_OS_IOS)
|
||||
return QKqueueFileSystemWatcherEngine::create(parent);
|
||||
#elif defined(Q_OS_OSX)
|
||||
return QFseventsFileSystemWatcherEngine::create(parent);
|
||||
|
Loading…
Reference in New Issue
Block a user