]> The Tcpdump Group git mirrors - libpcap/commitdiff
Don't check whether POLLRDHUP is defined.
authorGuy Harris <[email protected]>
Wed, 19 Feb 2020 05:53:33 +0000 (21:53 -0800)
committerGuy Harris <[email protected]>
Wed, 19 Feb 2020 05:53:33 +0000 (21:53 -0800)
It dates back to before the 2.6.27 kernel, and we require a 2.6.27 or
later kernel, so it will be defined.

pcap-linux.c

index d5eff0aa8c9891baaad5957822b1e1af6fc7ae02..982fb4fd2d86701a803376705c55407296372b14 100644 (file)
@@ -3612,10 +3612,6 @@ pcap_get_ring_frame_status(pcap_t *handle, int offset)
        return 0;
 }
 
-#ifndef POLLRDHUP
-#define POLLRDHUP 0
-#endif
-
 /*
  * Block waiting for frames to be available.
  */