From: Gary V. Vaughan Date: Fri, 14 May 2010 09:31:49 +0000 (+0000) Subject: Makefile: Tru64 portability fix X-Git-Tag: v1.7.2-rc0~32^2~2 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=46856f4e9d3d0fbfe1888ee19d632dfc04de8fab;p=git.git Makefile: Tru64 portability fix Add defaults for Tru64 Unix. Without this patch I cannot compile git on Tru64 5.1. Signed-off-by: Gary V. Vaughan Signed-off-by: Junio C Hamano --- diff --git a/Makefile b/Makefile index 3368cceba..bcb84be63 100644 --- a/Makefile +++ b/Makefile @@ -740,6 +740,13 @@ EXTLIBS = # because maintaining the nesting to match is a pain. If # we had "elif" things would have been much nicer... +ifeq ($(uname_S),OSF1) + # Need this for u_short definitions et al + BASIC_CFLAGS += -D_OSF_SOURCE + SOCKLEN_T = int + NO_STRTOULL = YesPlease + NO_NSEC = YesPlease +endif ifeq ($(uname_S),Linux) NO_STRLCPY = YesPlease NO_MKSTEMPS = YesPlease