git-compat-util: prefer poll.h to sys/poll.h
commit2648ccc231b38206e2dafe9a6cc1ca0978bcef5e
authorĐoàn Trần Công Danh <congdanhqx@gmail.com>
Wed, 14 Nov 2018 01:10:43 +0000 (14 08:10 +0700)
committerJunio C Hamano <gitster@pobox.com>
Wed, 14 Nov 2018 07:32:24 +0000 (14 16:32 +0900)
tree41b4cd2c75ffdec1fd77bf9cf314a8078151ce5d
parentd166e6afe5f257217836ef24a73764eba390c58d
git-compat-util: prefer poll.h to sys/poll.h

POSIX specifies that <poll.h> is the correct header for poll(2)
whereas <sys/poll.h> is only needed for some old libc.

Let's follow the POSIX way by default.

This effectively eliminates musl's warning:

    warning redirecting incorrect #include <sys/poll.h> to <poll.h>

Signed-off-by: Đoàn Trần Công Danh <congdanhqx@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Makefile
configure.ac
git-compat-util.h