mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2023-10-10 13:36:59 +02:00
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:
parent
88fbc4dfde
commit
0e5607db65
@ -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()
|
||||||
|
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user