From 43480998efd664beeb5aca3c77f26323c94dd880 Mon Sep 17 00:00:00 2001 From: Jacek Poplawski Date: Mon, 24 Jul 2023 09:07:42 +0200 Subject: [PATCH] Fix compilation of qfilesystemengine on VxWorks Change-Id: I533f262bf6624008d216d96aa29ae2dfc4ba9195 Reviewed-by: Thiago Macieira --- mkspecs/common/vxworks/qplatformdefs.h | 2 ++ src/corelib/io/qfilesystemengine_unix.cpp | 1 + 2 files changed, 3 insertions(+) diff --git a/mkspecs/common/vxworks/qplatformdefs.h b/mkspecs/common/vxworks/qplatformdefs.h index 75bbb3e0f9a..0679f729681 100644 --- a/mkspecs/common/vxworks/qplatformdefs.h +++ b/mkspecs/common/vxworks/qplatformdefs.h @@ -34,6 +34,8 @@ #define QT_SNPRINTF ::snprintf #define QT_VSNPRINTF ::vsnprintf +#define S_ISVTX 01000 + /* vxworks exposes these definitions only when _POSIX_C_SOURCE >=200809L but we don't want to set this, as it hides other API */ #ifndef UTIME_NOW # define UTIME_NOW ((1l << 30) - 1l) diff --git a/src/corelib/io/qfilesystemengine_unix.cpp b/src/corelib/io/qfilesystemengine_unix.cpp index d94cd452cfe..a3d71aeeaba 100644 --- a/src/corelib/io/qfilesystemengine_unix.cpp +++ b/src/corelib/io/qfilesystemengine_unix.cpp @@ -12,6 +12,7 @@ #include #include #include +#include #include #ifndef QT_BOOTSTRAPPED # include