diff --git a/lang/qt/src/keyformailboxjob.h b/lang/qt/src/keyformailboxjob.h index 9e76df51..d8b6c6b6 100644 --- a/lang/qt/src/keyformailboxjob.h +++ b/lang/qt/src/keyformailboxjob.h @@ -36,7 +36,12 @@ #include "job.h" -#include +#ifdef BUILDING_QGPGME +# include "key.h" +#else +# include +#endif + namespace GpgME { class Error; diff --git a/lang/qt/src/qgpgmekeyformailboxjob.h b/lang/qt/src/qgpgmekeyformailboxjob.h index 02a16d32..8ac2c1fc 100644 --- a/lang/qt/src/qgpgmekeyformailboxjob.h +++ b/lang/qt/src/qgpgmekeyformailboxjob.h @@ -38,8 +38,13 @@ #include "threadedjobmixin.h" -#include -#include +#ifdef BUILDING_QGPGME +# include "keylistresult.h" +# include "key.h" +#else +# include +# include +#endif namespace QGpgME {