POLLRDHUP
is a non-standard extension (it is missing from POSIX). To prevent polluting the namespace, non-standard extensions are not visible unless you explicitly request them by defining _GNU_SOURCE
.
More details on _GNU_SOURCE
can be found in previous StackOverflow answers such as this one.