$OpenBSD: patch-src_QGlib_type_h,v 1.1 2017/12/26 19:18:57 rsadowski Exp $

Workaround for boost>=1.57 and MOC

The workaround to define BOOST_TT_HAS_OPERATOR_HPP_INCLUDED
doesn't work anymore.

https://bugreports.qt-project.org/browse/QTBUG-22829 for details.

Index: src/QGlib/type.h
--- src/QGlib/type.h.orig
+++ src/QGlib/type.h
@@ -21,8 +21,9 @@
 
 #include "global.h"
 #include <QtCore/QList>
+#ifndef Q_MOC_RUN
 #include <boost/mpl/if.hpp>
-
+#endif
 /*
  * This is a re-definition of GType inside the QGlib::Private namespace.
  * It is used in the headers to avoid including <glib-object.h>.
