Browse Source

Fix build on FreeBSD without signalfd

Serj Kalichev 5 days ago
parent
commit
a8f770a9b7
1 changed files with 3 additions and 1 deletions
  1. 3 1
      faux/eloop/eloop.c

+ 3 - 1
faux/eloop/eloop.c

@@ -29,7 +29,6 @@
 #include <time.h>
 #include <signal.h>
 #include <poll.h>
-#include <sys/signalfd.h>
 
 #include "faux/faux.h"
 #include "faux/str.h"
@@ -42,6 +41,9 @@
 #define TIMESPEC_TO_MILISECONDS(t) ((t.tv_sec * 1000) + (t.tv_nsec / 1000000l))
 
 #ifdef HAVE_SIGNALFD
+
+#include <sys/signalfd.h>
+
 #define SIGNALFD_FLAGS (SFD_NONBLOCK | SFD_CLOEXEC)
 
 #else // Standard signals