summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorLibravatar David M. Syzdek <david.syzdek@acsalaska.net>2008-10-26 03:52:37 -0800
committerLibravatar Junio C Hamano <gitster@pobox.com>2008-11-02 01:09:34 -0700
commit0bc3e781deb543ac2042cbd862c035403404c93d (patch)
tree61c10fdd81c3e9bdd840cd736970a8bdc6c8afc3 /Makefile
parentMerge branch 'maint' (diff)
downloadtgif-0bc3e781deb543ac2042cbd862c035403404c93d.tar.xz
Build: add NO_UINTMAX_T to support ancient systems
This adds NO_UINTMAX_T for ancient systems, such as FreeBSD 4.9-SECURITY. If NO_UINTMAX_T is defined, then uintmax_t is defined as uint32_t. Signed-off-by: David M. Syzdek <david.syzdek@acsalaska.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index d6f3695c97..0698365078 100644
--- a/Makefile
+++ b/Makefile
@@ -955,6 +955,9 @@ endif
ifdef NO_IPV6
BASIC_CFLAGS += -DNO_IPV6
endif
+ifdef NO_UINTMAX_T
+ BASIC_CFLAGS += -Duintmax_t=uint32_t
+endif
ifdef NO_SOCKADDR_STORAGE
ifdef NO_IPV6
BASIC_CFLAGS += -Dsockaddr_storage=sockaddr_in