summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2019-02-13 18:18:41 -0800
committerLibravatar Junio C Hamano <gitster@pobox.com>2019-02-13 18:18:41 -0800
commit1db999ce8d369dbf20532f1b2ea8cbbcf6f2cc7b (patch)
tree2594969e363819ef50ad96ad999f352f35ea2a91 /Makefile
parentMerge branch 'nd/get-oid-with-context-returns-an-enum' (diff)
parentgit-compat-util: work around fileno(fp) that is a macro (diff)
downloadtgif-1db999ce8d369dbf20532f1b2ea8cbbcf6f2cc7b.tar.xz
Merge branch 'nd/fileno-may-be-macro'
* nd/fileno-may-be-macro: git-compat-util: work around fileno(fp) that is a macro
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 7 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 0e13a5b469..af7e809ced 100644
--- a/Makefile
+++ b/Makefile
@@ -433,6 +433,8 @@ all::
#
# Define HAVE_GETDELIM if your system has the getdelim() function.
#
+# Define FILENO_IS_A_MACRO if fileno() is a macro, not a real function.
+#
# Define PAGER_ENV to a SP separated VAR=VAL pairs to define
# default environment variables to be passed when a pager is spawned, e.g.
#
@@ -1800,6 +1802,11 @@ ifdef HAVE_WPGMPTR
BASIC_CFLAGS += -DHAVE_WPGMPTR
endif
+ifdef FILENO_IS_A_MACRO
+ COMPAT_CFLAGS += -DFILENO_IS_A_MACRO
+ COMPAT_OBJS += compat/fileno.o
+endif
+
ifeq ($(TCLTK_PATH),)
NO_TCLTK = NoThanks
endif