Skip to content

Commit

Permalink
includes
Browse files Browse the repository at this point in the history
  • Loading branch information
braindigitalis committed Apr 4, 2024
1 parent 4a7bceb commit 1b91824
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/dpp/socketengines/epoll.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
#include <memory>
#include <sys/epoll.h>
#include <sys/socket.h>
#include <unistd.h>
#include <vector>

struct socket_engine_epoll : public socket_engine_base {
Expand Down Expand Up @@ -161,4 +162,4 @@ struct socket_engine_epoll : public socket_engine_base {

std::unique_ptr<socket_engine_base> create_socket_engine() {
return std::make_unique<socket_engine_epoll>();
}
}
3 changes: 2 additions & 1 deletion src/dpp/socketengines/kqueue.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
#include <sys/types.h>
#include <sys/event.h>
#include <sys/sysctl.h>
#include <unistd.h>

#if defined __NetBSD__ && __NetBSD_Version__ <= 999001400
#define CAST_TYPE intptr_t
Expand Down Expand Up @@ -164,4 +165,4 @@ struct socket_engine_kqueue : public socket_engine_base {

std::unique_ptr<socket_engine_base> create_socket_engine() {
return std::make_unique<socket_engine_kqueue>();
}
}
1 change: 1 addition & 0 deletions src/dpp/socketengines/poll.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
/* Anything other than Windows (e.g. sane OSes) */
#include <poll.h>
#include <sys/socket.h>
#include <unistd.h>
#endif
#include <memory>

Expand Down

0 comments on commit 1b91824

Please sign in to comment.