]> git.meshlink.io Git - catta/blobdiff - avahi-qt/qt-watch.cpp
Include qt mainloop adapter in build system. Moc finding code is cracktastic thanks to
[catta] / avahi-qt / qt-watch.cpp
index 407a9055a972c8f072d17202f404e62426a62e20..c5052fd411f875d720383701bf2e3ff4d8d09a95 100644 (file)
@@ -170,7 +170,7 @@ static void q_timeout_free(AvahiTimeout *t)
 
 static AvahiPoll qt_poll;
 
-const AvahiPoll* avahi_qt_poll_get() 
+const AvahiPoll* avahi_qt_poll_get(void
 {
     qt_poll.userdata=0;
     qt_poll.watch_new = q_watch_new;
@@ -184,4 +184,8 @@ const AvahiPoll* avahi_qt_poll_get()
     return &qt_poll;
 }
 
-#include "qt-watch.moc"
+#ifdef QT4
+#include "qt-watch.moc4"
+#else
+#include "qt-watch.moc3"
+#endif