Skip to content

Commit

Permalink
fix: eventfd init
Browse files Browse the repository at this point in the history
  • Loading branch information
obiltschnig committed Nov 16, 2024
1 parent cb2182a commit 803c536
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Net/src/PollSet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@

#if defined(POCO_HAVE_FD_EPOLL)
#include <sys/epoll.h>
#include <sys/eventfd.h>
#elif defined(POCO_HAVE_FD_POLL)
#ifndef _WIN32
#include <poll.h>
Expand All @@ -53,7 +54,7 @@ class PollSetImpl
public:
PollSetImpl():
_epollfd(-1),
_eventfd(0, 0),
_eventfd(eventfd(0, 0)),
_events(1024)
{
_epollfd = epoll_create(1);
Expand Down

0 comments on commit 803c536

Please sign in to comment.