summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 933bb3a)
raw | patch | inline | side by side (parent: 933bb3a)
author | David M. Syzdek <david.syzdek@acsalaska.net> | |
Sun, 26 Oct 2008 11:52:37 +0000 (03:52 -0800) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Sun, 2 Nov 2008 08:09:34 +0000 (01:09 -0700) |
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>
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>
Makefile | patch | blob | history | |
config.mak.in | patch | blob | history | |
configure.ac | patch | blob | history |
diff --git a/Makefile b/Makefile
index d6f3695c97d5c36fe3b99dfc056173b6d785cd4b..0698365078c4b98de04da8701c68b5d1811b3487 100644 (file)
--- a/Makefile
+++ b/Makefile
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
diff --git a/config.mak.in b/config.mak.in
index 17e9861c0634133ec5e07af99191cff99f8a40ad..717072943f67a126834a06ae9ac820e972e11ae0 100644 (file)
--- a/config.mak.in
+++ b/config.mak.in
NO_STRCASESTR=@NO_STRCASESTR@
NO_MEMMEM=@NO_MEMMEM@
NO_STRLCPY=@NO_STRLCPY@
+NO_UINTMAX_T=@NO_UINTMAX_T@
NO_STRTOUMAX=@NO_STRTOUMAX@
NO_SETENV=@NO_SETENV@
NO_UNSETENV=@NO_UNSETENV@
diff --git a/configure.ac b/configure.ac
index 27bab00a454c1a29946bbbc0a573ae83f83ee07f..a0d53f31241aa8400b62583ade516f2ca1413935 100644 (file)
--- a/configure.ac
+++ b/configure.ac
[NO_STRLCPY=YesPlease])
AC_SUBST(NO_STRLCPY)
#
+# Define NO_UINTMAX_T if your platform does not have uintmax_t
+AC_CHECK_TYPE(uintmax_t,
+[NO_UINTMAX_T=],
+[NO_UINTMAX_T=YesPlease],[
+#include <inttypes.h>
+])
+AC_SUBST(NO_UINTMAX_T)
+#
# Define NO_STRTOUMAX if you don't have strtoumax in the C library.
AC_CHECK_FUNC(strtoumax,
[NO_STRTOUMAX=],