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

Re: [PATCH] Makefile: use fileno macro work around on AIX

From
Junio C Hamano <gitster@pobox.com>
Date
Apr 19, 2019, 05:01 UTC
Message-ID
<xmqqimvaegh5.fsf@gitster-ct.c.googlers.com>
In-Reply-To
<AM6PR02MB4950A1A625EEA54D4423C1BCEA260@AM6PR02MB4950.eurprd02.prod.outlook.com>
"CHIGOT, CLEMENT" <clement.chigot@atos.net> writes:
Show 8 quoted lines
> Declare FILENO_IS_A_MACRO on AIX
>
> On AIX, fileno(fp) is a macro and need to use the work around already made for BSD's. 
>
> Signed-off-by: Clément Chigot <clement.chigot@atos.net>
> ---
>  config.mak.uname | 1 +
>  1 file changed, 1 insertion(+)
I do not have an AIX box, so I'll take this as-is.
Thanks.
Show 13 quoted lines
>
> diff --git a/config.mak.uname b/config.mak.uname
> index 41e85fab1c..86cbe47627 100644
> --- a/config.mak.uname
> +++ b/config.mak.uname
> @@ -269,6 +269,7 @@ ifeq ($(uname_S),AIX)
>  	INTERNAL_QSORT = UnfortunatelyYes
>  	NEEDS_LIBICONV = YesPlease
>  	BASIC_CFLAGS += -D_LARGE_FILES
> +	FILENO_IS_A_MACRO = UnfortunatelyYes
>  	ifeq ($(shell expr "$(uname_V)" : '[1234]'),1)
>  		NO_PTHREADS = YesPlease
>  	else
Previous: CHIGOT, CLEMENT
Message 2 of 2 in “Makefile: use fileno macro work around on AIX”
  1. Makefile: use fileno macro work around on AIXCHIGOT, CLEMENT, Apr 18, 2019
  2. Junio C HamanoApr 19, 2019

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.