Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-32266

Solaris/gcc 4.8: QLockFile fails to compile

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Not Evaluated
    • Resolution: Done
    • Affects Version/s: 5.1.0
    • Fix Version/s: 5.1.0
    • Component/s: Core: I/O
    • Labels:
      None
    • Environment:
      GCC 4.8.0
      Solaris 10 x64
    • Commits:
      4315f270e6d553f0c6537617b8efff8988f1f083

      Description

      io/qlockfile_unix.cpp: In static member function 'static int QLockFilePrivate::checkFcntlWorksAfterFlock()':
      io/qlockfile_unix.cpp:87:19: error: 'LOCK_EX' was not declared in this scope
      if (flock(fd, LOCK_EX | LOCK_NB) == -1) // other threads, and other processes on a local fs
      io/qlockfile_unix.cpp:87:29: error: 'LOCK_NB' was not declared in this scope
      if (flock(fd, LOCK_EX | LOCK_NB) == -1) // other threads, and other processes on a local fs
      io/qlockfile_unix.cpp: In function 'bool setNativeLocks(int)':
      io/qlockfile_unix.cpp:119:19: error: 'LOCK_EX' was not declared in this scope
      if (flock(fd, LOCK_EX | LOCK_NB) == -1) // other threads, and other processes on a local fs
      io/qlockfile_unix.cpp:119:29: error: 'LOCK_NB' was not declared in this scope
      if (flock(fd, LOCK_EX | LOCK_NB) == -1) // other threads, and other processes on a local fs

        Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            dfaure David Faure (Private)
            Reporter:
            chris5287 Chris Stylianou
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes