#ifndef WIN32 #include <sys/socket.h> #include <netinet/in.h> #else //win7下的头文件 #include <winsock2.h> #include<ws2tcpip.h> #endif
LIBS += -llibwpcap -lws2_32