Skip to content

Commit b79b8c9

Browse files
committed
net: add macOS compatibility for TCP_KEEPIDLE
1 parent e4b1f59 commit b79b8c9

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/network.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,13 @@
1616
#include <Poco/Net/NetException.h>
1717
#include <Poco/Net/StreamSocket.h>
1818

19+
#include <netinet/tcp.h>
20+
#ifdef __APPLE__
21+
#ifndef TCP_KEEPIDLE
22+
#define TCP_KEEPIDLE TCP_KEEPALIVE
23+
#endif
24+
#endif
25+
1926
#include <franka/exception.h>
2027

2128
#include <research_interface/robot/service_types.h>

0 commit comments

Comments
 (0)