diff mbox series

Makefile: use fileno macro work around on AIX

Message ID AM6PR02MB4950A1A625EEA54D4423C1BCEA260@AM6PR02MB4950.eurprd02.prod.outlook.com (mailing list archive)
State New, archived
Headers show
Series Makefile: use fileno macro work around on AIX | expand

Commit Message

CHIGOT, CLEMENT April 18, 2019, 8:55 a.m. UTC
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(+)

Comments

Junio C Hamano April 19, 2019, 5:01 a.m. UTC | #1
"CHIGOT, CLEMENT" <clement.chigot@atos.net> writes:

> 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.


>
> 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
diff mbox series

Patch

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