1
0
mirror of https://github.com/mfontanini/libtins synced 2026-01-23 02:35:57 +01:00

Fix macro conditional.

This commit is contained in:
Matias Fontanini
2015-04-18 18:17:28 -07:00
parent 1a9cd63397
commit 0d9fe13166

View File

@@ -176,14 +176,14 @@ namespace Tins {
*/
~PacketSender();
#if !defined(WIN32) || HAVE_PACKET_SENDER_PCAP_SENDPACKET
#if !defined(WIN32) || defined(HAVE_PACKET_SENDER_PCAP_SENDPACKET)
/**
* \brief Opens a layer 2 socket.
*
* If this operation fails, then a socket_open_error will be thrown.
*/
void open_l2_socket(const NetworkInterface& iface = NetworkInterface());
#endif // !WIN32 || HAVE_PACKET_SENDER_PCAP_SENDPACKET
#endif // !WIN32 || defined(HAVE_PACKET_SENDER_PCAP_SENDPACKET)
/**
* \brief Opens a layer 3 socket, using the corresponding protocol