diff --git a/src/platformsupport/eglconvenience/qeglconvenience.cpp b/src/platformsupport/eglconvenience/qeglconvenience.cpp index 6c2cc4a186..f8ccff9b56 100644 --- a/src/platformsupport/eglconvenience/qeglconvenience.cpp +++ b/src/platformsupport/eglconvenience/qeglconvenience.cpp @@ -41,7 +41,7 @@ #include -#ifdef Q_OS_UNIX +#if (defined(Q_OS_UNIX) && !defined(Q_OS_QNX)) #include #include #include @@ -433,7 +433,7 @@ void q_printEglConfig(EGLDisplay display, EGLConfig config) qWarning("\n"); } -#ifdef Q_OS_UNIX +#if (defined(Q_OS_UNIX) && !defined(Q_OS_QNX)) QSizeF q_physicalScreenSizeFromFb(int framebufferDevice) {