git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] git-compat-util: prefer poll.h to sys/poll.h

From
Junio C Hamano <gitster@pobox.com>
Date
Nov 14, 2018, 04:48 UTC
Message-ID
<xmqqr2fop8lr.fsf@gitster-ct.c.googlers.com>
In-Reply-To
<20181114014307.GM890086@genre.crustytoothpaste.net>
"brian m. carlson" <sandals@crustytoothpaste.net> writes:
Show 14 quoted lines
> On Wed, Nov 14, 2018 at 08:10:43AM +0700, Đoàn Trần Công Danh wrote:
>> 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>
>
> I think this patch is fine.  This was in SUSv2, and I don't feel bad
> about siding with a spec that's at least 17 years old.
Yup, I agree.  Thanks, both.
Previous: brian m. carlsonNext: Danh Doan
Message 3 of 5 in “git-compat-util: prefer poll.h to sys/poll.h”
  1. git-compat-util: prefer poll.h to sys/poll.hĐoàn Trần Công Danh, Nov 14, 2018
  2. brian m. carlsonNov 14, 2018
  3. Junio C HamanoNov 14, 2018
  4. Danh DoanNov 14, 2018
  5. Junio C HamanoNov 14, 2018

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.