Skip to content

Commit

Permalink
IPC/QSharedMemory: add missing include
Browse files Browse the repository at this point in the history
Include header defining MAP_FAILED for SysV sharedmemory to fix:

src/corelib/ipc/qsharedmemory_systemv.cpp:175:25: error: ‘MAP_FAILED’ was not declared in this scope; did you mean ‘AF_FILE’?
  175 |     if (self->memory == MAP_FAILED) {
      |                         ^~~~~~~~~~

Change-Id: Ia30539d90faad911909f2556b655758ddea6efdb
Reviewed-by: Fabian Kosmale <[email protected]>
Reviewed-by: Thiago Macieira <[email protected]>
  • Loading branch information
sapiippo committed Feb 10, 2023
1 parent b5a54d4 commit 991c321
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/corelib/ipc/qsharedmemory_systemv.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
#if QT_CONFIG(sysv_shm)
#include <sys/types.h>
#include <sys/ipc.h>
#include <sys/mman.h>
#include <sys/shm.h>
#include <sys/stat.h>
#include <fcntl.h>
Expand Down

0 comments on commit 991c321

Please sign in to comment.