Remove guards around unistd.h

We take unistd.h for granted in many places, so remove guards around the
corresponding includes to make code consistent.
This commit is contained in:
Vlad Zahorodnii 2022-03-17 11:51:32 +02:00
parent af5e8a937d
commit 645f5adfc2
3 changed files with 4 additions and 14 deletions

View file

@ -46,14 +46,10 @@
#include <QTranslator>
#include <QLibraryInfo>
// system
#if __has_include(<unistd.h>)
#include <unistd.h>
#endif
#ifdef __has_include(<malloc.h>)
#include <malloc.h>
#endif
#include <unistd.h>
// xcb
#include <xcb/damage.h>

View file

@ -42,10 +42,8 @@
#include <QtDBus>
// system
#if __has_include(<unistd.h>)
#include <unistd.h>
#endif
#include <iostream>
#include <unistd.h>
Q_LOGGING_CATEGORY(KWIN_CORE, "kwin_core", QtWarningMsg)

View file

@ -42,14 +42,10 @@
#include <QTimer>
#include <QtConcurrentRun>
// system
#if __has_include(<unistd.h>)
#include <unistd.h>
#endif
#include <sys/socket.h>
#include <cerrno>
#include <cstring>
#include <sys/socket.h>
#include <unistd.h>
namespace KWin
{