From e40b61fb6bd2e0ed2dc4799096fcf4c828c28d6d Mon Sep 17 00:00:00 2001 From: Jason Riedy Date: Fri, 2 Dec 2005 15:08:28 -0800 Subject: Add compat/setenv.c, use in git.c. There is no setenv() in Solaris 5.8. The trivial calls to setenv() were replaced by putenv() in a much earlier patch, but setenv() was used again in git.c. This patch just adds a compat/setenv.c. The rule for building git$(X) also needs to include compat. objects and compiler flags. Those are now in makefile vars COMPAT_OBJS and COMPAT_CFLAGS. Signed-off-by: E. Jason Riedy Signed-off-by: Junio C Hamano --- git.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'git.c') diff --git a/git.c b/git.c index 878c35970..619f25acf 100644 --- a/git.c +++ b/git.c @@ -13,6 +13,10 @@ # define PATH_MAX 4096 #endif +#ifdef NO_SETENV +extern int gitsetenv(char *name, char *value, int overwrite); +#endif + static const char git_usage[] = "Usage: git [--version] [--exec-path[=GIT_EXEC_PATH]] [--help] COMMAND [ ARGS ]"; -- cgit v1.2.1