Makefile: use fileno macro work around on AIX
authorClément Chigot <clement.chigot@atos.net>
Thu, 18 Apr 2019 08:55:09 +0000 (08:55 +0000)
committerJunio C Hamano <gitster@pobox.com>
Thu, 25 Apr 2019 08:49:20 +0000 (17:49 +0900)
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>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
config.mak.uname

index 2011bac..4ef11ce 100644 (file)
@@ -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