Fixed compile error when no grabbers are defined + remove avahi warning (#11)

* Fixed compile error when no grabbers are defined

* Remove stupid avahi warning...
This commit is contained in:
penfold42 2016-06-19 00:33:25 +10:00 committed by brindosch
parent 88fbc4dfde
commit 0e5607db65
2 changed files with 3 additions and 3 deletions

View File

@ -26,15 +26,15 @@ OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/ */
//#include "bonjourserviceregister.h"
#include <bonjour/bonjourserviceregister.h> #include <bonjour/bonjourserviceregister.h>
#include <stdlib.h>
#include <QtCore/QSocketNotifier> #include <QtCore/QSocketNotifier>
BonjourServiceRegister::BonjourServiceRegister(QObject *parent) BonjourServiceRegister::BonjourServiceRegister(QObject *parent)
: QObject(parent), dnssref(0), bonjourSocket(0) : QObject(parent), dnssref(0), bonjourSocket(0)
{ {
setenv("AVAHI_COMPAT_NOWARN", "1", 1);
} }
BonjourServiceRegister::~BonjourServiceRegister() BonjourServiceRegister::~BonjourServiceRegister()

View File

@ -183,7 +183,7 @@ int main(int argc, char** argv)
#endif #endif
#if !defined(ENABLE_DISPMANX) && !defined(ENABLE_OSX) && !defined(ENABLE_FB) #if !defined(ENABLE_DISPMANX) && !defined(ENABLE_OSX) && !defined(ENABLE_FB)
ErrorIf(config.isMember("framegrabber"), log, "No grabber can be instantiated, because all grabbers have been left out from the build" << std::endl; ErrorIf(config.isMember("framegrabber"), log, "No grabber can be instantiated, because all grabbers have been left out from the build");
#endif #endif
// run the application // run the application