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

Re: Minor portability issues + fixes

From
Carlo Marcelo Arenas Belón <carenas@gmail.com>
Date
May 19, 2020, 03:04 UTC
Message-ID
<20200519030440.GB20332@Carlos-MBP>
In-Reply-To
<7422404e-7fc8-4961-aae4-3f0adb71bb3a@www.fastmail.com>
On Mon, May 18, 2020 at 09:15:58PM -0400, Daniel Richard G. wrote:
> 
> I am building Git 2.26.2 on AIX. A few compilation errors arose, but
> they are resolvable with a few minor changes that will improve overall
> portability.
which version of AIX is this?
Show 5 quoted lines
> There were a few errors of this form:
> 
>     sha1-file.c: In function 'mmap_limit_check':
>     sha1-file.c:940:12: error: 'SIZE_MAX' undeclared (first use in this function)
>     sha1-file.c:940:12: note: each undeclared identifier is reported only once for each function it appears in
we include inttypes.h which is supposed to include stdint.h per POSIX[1]

could you take a look at that header and see if there is some macro definition preventing that to happen?

Carlo
[1] https://pubs.opengroup.org/onlinepubs/009696799/basedefs/inttypes.h.html
Previous: Jeff KingNext: Daniel Richard G.
Message 7 of 8 in “Minor portability issues + fixes”
  1. Daniel Richard G.May 19, 2020
  2. Jeff KingMay 19, 2020
  3. Daniel Richard G.May 19, 2020
  4. Jeff KingMay 20, 2020
  5. Daniel Richard G.May 21, 2020
  6. Jeff KingMay 22, 2020
  7. Carlo Marcelo Arenas BelónMay 19, 2020
  8. Daniel Richard G.May 19, 2020

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.