diff --git a/test/zdtm/live/static/packet_sock.c b/test/zdtm/live/static/packet_sock.c index 3f13166a6..a12e624e1 100644 --- a/test/zdtm/live/static/packet_sock.c +++ b/test/zdtm/live/static/packet_sock.c @@ -20,6 +20,7 @@ const char *test_author = "Pavel Emelyanov "; #include #include #include +#include #include #include @@ -67,6 +68,8 @@ struct packet_mreq_max { #define LO_ADDR_LEN 6 +#if LINUX_VERSION_CODE < KERNEL_VERSION(3,2,0) + struct tpacket_req3 { unsigned int tp_block_size; unsigned int tp_block_nr; @@ -77,6 +80,8 @@ struct tpacket_req3 { unsigned int tp_feature_req_word; }; +#endif + int main(int argc, char **argv) { int sk1, sk2;