Skip to content

Commit 5fc5735

Browse files
authored
core: add missing #include <unistd.h> (#114)
FreeBSD clang fails to compile code with it. It is required by read().
1 parent 086cfaa commit 5fc5735

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

src/config/ConfigManager.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
#include "../helpers/Log.hpp"
44

5+
#include <unistd.h>
6+
57
#include <hyprutils/path/Path.hpp>
68

79
CConfigManager::CConfigManager() : m_inotifyFd(inotify_init()) {

src/finders/desktop/DesktopFinder.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
#include <fstream>
1010
#include <sys/inotify.h>
1111
#include <sys/poll.h>
12+
#include <unistd.h>
1213
#include <unordered_set>
1314

1415
#include <hyprutils/string/String.hpp>

0 commit comments

Comments
 (0)