Skip to content

Commit

Permalink
fix: hide kqueue behind include guards
Browse files Browse the repository at this point in the history
  • Loading branch information
g-tejas committed Aug 15, 2024
1 parent bc3a4a2 commit d4739c8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions include/loom/backends/kqueue.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@
#include <iterator>
#include <sstream>
#include <string>
#ifdef __APPLE__
#include <sys/event.h>
#endif

template <>
struct std::formatter<struct kevent> {
Expand Down Expand Up @@ -115,9 +117,8 @@ struct std::formatter<struct kevent> {
{NOTE_CHILD, "NOTE_CHILD"}};
};

namespace loom {
#ifdef __APPLE__

namespace loom {
class Kqueue : public Loom<Kqueue> {
public:
int m_kq_fd;
Expand Down

0 comments on commit d4739c8

Please sign in to comment.