fix: Conditionally include sys/eventfd.h only on Linux

Add #ifdef __linux__ guard around sys/eventfd.h include to fix
compilation on non-Linux platforms.
pull/5423/head
Rene Cannao 3 months ago
parent bcefd093fc
commit cffd980bb9

@ -11,7 +11,9 @@
#include <string>
#include <unistd.h>
#include <fcntl.h>
#ifdef __linux__
#include <sys/eventfd.h>
#endif
#include <chrono>
#include <random>
#include <thread>

Loading…
Cancel
Save