summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libnet/include/win32/libnet.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/libnet/include/win32/libnet.h b/libnet/include/win32/libnet.h
index 9a6f8b2..18a5d6c 100644
--- a/libnet/include/win32/libnet.h
+++ b/libnet/include/win32/libnet.h
@@ -74,10 +74,13 @@ extern "C" {
#define __FUNCTION__ __FILE__
#endif
+/* the following is only supported by MSVC and not by MinGW/MSys environements */
+#ifdef _MSC_VER
#pragma comment (lib,"ws2_32") /* Winsock 2 */
#pragma comment (lib,"iphlpapi") /* IP Helper */
#pragma comment (lib,"wpcap") /* Winpcap */
#pragma comment (lib,"packet")
+#endif
/* FIXME this needs manual update during release packaging. */
#define LIBNET_VERSION "1.1.6"