Skip to content

Commit e9c367e

Browse files
committed
TCP input: fix FreeBSD build
#107
1 parent b26fda4 commit e9c367e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/plugins/input/tcp/src/Epoll.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@
1414
#include <cerrno> // errno, EINTR
1515
#include <string> // string
1616

17-
#include <sys/epoll.h> // epoll_event, epoll_create, EPOLLIN, EPOLL_CT_ADD, epoll_ctl, EPOLL_CTL_DEL
18-
1917
#include <ipfixcol2.h> // ipx_strerror
2018

2119
#include "UniqueFd.hpp" // UniqueFd

src/plugins/input/tcp/src/Epoll.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
#pragma once
1212

1313
#include <sys/epoll.h> // epoll_event
14+
#undef close // fix FreeBSD build: (tcp_in::Connection has own close(),
15+
// but preprocesor changes it for epoll_shim_close())
1416

1517
#include "UniqueFd.hpp" // UniqueFd
1618

0 commit comments

Comments
 (0)