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

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

From
CCCHIGOT, CLEMENT <clement.chigot@atos.net>
Date
Apr 18, 2019, 08:55 UTC
Message-ID
<AM6PR02MB4950A1A625EEA54D4423C1BCEA260@AM6PR02MB4950.eurprd02.prod.outlook.com>
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(+)
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
-- 
2.17.1
Next: Junio C Hamano
Message 1 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.