Skip to content

Commit

Permalink
trying to fix build for all OSs...
Browse files Browse the repository at this point in the history
  • Loading branch information
0x0OZ committed Sep 18, 2023
1 parent 0a228c0 commit 1108490
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion client/hostinfo_unix.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -179,13 +179,16 @@ extern "C" {
//
#if (defined(__linux__) || defined(__GNU__) || defined(__GLIBC__)) && !defined(__HAIKU__)
#define LINUX_LIKE_SYSTEM 1
#include <glob.h>
#endif

#if (defined(__linux__) && !defined(__HAIKU__))
#include <libevdev-1.0/libevdev/libevdev.h>
#include <fcntl.h>
// variables for getting linux IDLE time on linux.
size_t deviceCount = 0;
libevdev* devices[256]; // Assuming a maximum of 256 input devices
time_t linuxUserLastSeen = time(nullptr);
#include <glob.h>
#endif

#if WASM
Expand Down

0 comments on commit 1108490

Please sign in to comment.