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

Re: [BUG] Non-portable Construct Introduced in diagnose.c (dirent) at v2.38.0-rc0

From
Victoria Dye <vdye@github.com>
Date
Sep 16, 2022, 23:11 UTC
Message-ID
<5d02d3b8-dc79-a2d8-f5e1-129d2228ff23@github.com>
In-Reply-To
<011001d8ca20$bc4d81f0$34e885d0$@nexbridge.com>
rsbecker@nexbridge.com wrote:
Show 11 quoted lines
> The dirent d_type field is not available on every system. This was
> introduced at 2.38.0-rc0 in diagnose.c
> 
> diagnose.c, line 79: error(1565): struct "dirent" has no field "d_type"
> 
>   		    e->d_type == DT_DIR && strlen(e->d_name) == 2 &&
> 
> (3 more issues in diagnose exist of this form).
> 
> The code should use the  NO_D_TYPE_IN_DIRENT knob to detect whether this is
> an existing field as defined in cache.h.

Apologies for missing that, I'll try to send a patch fixing it either later today or sometime Monday.

Thanks, -Victoria

Show 14 quoted lines
> 
> This change breaks the build on NonStop systems (at least). I'm sorry I
> missed this during review.
> 
> Randall
> 
> --
> Brief whoami: NonStop&UNIX developer since approximately
> UNIX(421664400)
> NonStop(211288444200000000)
> -- In real life, I talk too much.
> 
> 
> 
Previous: rsbecker@nexbridge.comNext: rsbecker@nexbridge.com
Message 2 of 4 in “[BUG] Non-portable Construct Introduced in diagnose.c (dirent) at v2.38.0-rc0”
  1. rsbecker@nexbridge.comSep 16, 2022
  2. Victoria DyeSep 16, 2022
  3. rsbecker@nexbridge.comSep 16, 2022
  4. Junio C HamanoSep 17, 2022

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.