Uploaded image for project: 'Qt Mobility'
  1. Qt Mobility
  2. QTMOBILITY-2047

qsysteminfo_linux.cpp and qpulseaudioengine.cpp missing unistd.h

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • Not Evaluated
    • None
    • 1.2.x, 1.3.0
    • None
    • Arch Linux, Qt 4.8.1, qt-mobility sources from git master. GCC 4.7.0

    Description

      Compiling with gcc 4.7 fails with the following error:

      linux/qsysteminfo_linux.cpp: In member function 'bool QtMobility::QSystemScreenSaverPrivate::setScreenSaverInhibit()':
      linux/qsysteminfo_linux.cpp:706:35: error: 'getppid' was not declared in this scope
      linux/qsysteminfo_linux.cpp: In member function 'bool QtMobility::QSystemScreenSaverPrivate::isScreenSaverActive()':
      linux/qsysteminfo_linux.cpp:815:35: error: 'getppid' was not declared in this scope

      The file src/systeminfo/linux/qsysteminfo_linux.cpp (or one of its included headers) needs to #include unistd.h

      It seems unistd.h was previously included by some of the C++ headers, but now isn't, so must be included when required.

      Also requiring unistd.h:
      plugins/multimedia/pulseaudio/qpulseaudioengine.cpp

      Attachments

        Activity

          People

            lpotter Lorn Potter
            thra11 T Hall
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: