Skip to content

Commit 1882291

Browse files
author
Artiom N.
committed
Style fix
1 parent d5067b1 commit 1882291

File tree

1 file changed

+3
-0
lines changed
  • src/book01/ch22/cpp/promisc_switcher

1 file changed

+3
-0
lines changed

src/book01/ch22/cpp/promisc_switcher/main.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,15 @@
55
# include <iphlpapi.h>
66
# include <mstcpip.h>
77
#else
8+
extern "C"
9+
{
810
# include <sys/ioctl.h>
911
# include <sys/socket.h>
1012
// For IF_PROMISC.
1113
# include <linux/if.h>
1214
// For ETH_P_ALL.
1315
# include <netinet/if_ether.h>
16+
}
1417
#endif
1518

1619
#include <socket_wrapper/socket_class.h>

0 commit comments

Comments
 (0)