summaryrefslogtreecommitdiffstats
path: root/mkspecs/common/rtems/qplatformdefs.h
diff options
context:
space:
mode:
Diffstat (limited to 'mkspecs/common/rtems/qplatformdefs.h')
-rw-r--r--mkspecs/common/rtems/qplatformdefs.h36
1 files changed, 36 insertions, 0 deletions
diff --git a/mkspecs/common/rtems/qplatformdefs.h b/mkspecs/common/rtems/qplatformdefs.h
new file mode 100644
index 0000000000..83b52b3079
--- /dev/null
+++ b/mkspecs/common/rtems/qplatformdefs.h
@@ -0,0 +1,36 @@
+// Copyright (C) 2018 The Qt Company. All rights reserved.
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
+
+#ifndef Q_RTEMS_PLATFORMDEFS_H
+#define Q_RTEMS_PLATFORMDEFS_H
+
+// Get Qt defines/settings
+
+#include "qglobal.h"
+
+#include <pthread.h>
+#include <dirent.h>
+#include <fcntl.h>
+#include <signal.h>
+#include <sys/select.h>
+
+#include <sys/types.h>
+#include <sys/ioctl.h>
+#include <sys/time.h>
+
+#include <pwd.h>
+#include <grp.h>
+
+#define __LINUX_ERRNO_EXTENSIONS__
+#include <errno.h>
+
+#include "../posix/qplatformdefs.h"
+
+#ifdef __STRICT_ANSI__
+#undef __STRICT_ANSI__
+#endif
+
+#undef QT_OPEN_LARGEFILE
+#define QT_OPEN_LARGEFILE 0
+
+#endif // Q_RTEMS_PLATFORMDEFS_H