[PATCH] Add #include <limits.h> so that git compiles under Solaris
From: Thomas Glanzmann <hidden>
Date: 2016-06-15 22:41:56
From: Thomas Glanzmann <hidden>
Date: 2016-06-15 22:41:56
[PATCH] Add #include <limits.h> so that git compiles under Solaris
--- a/diff-tree-helper.c
+++ b/diff-tree-helper.c@@ -1,6 +1,7 @@ /* * Copyright (C) 2005 Junio C Hamano */ +#include <limits.h> #include "cache.h" #include "strbuf.h" #include "diff.h" --- a/diff.c +++ b/diff.c
@@ -4,6 +4,7 @@ #include <sys/types.h> #include <sys/wait.h> #include <signal.h> +#include <limits.h> #include "cache.h" #include "diff.h" --- a/local-pull.c +++ b/local-pull.c
@@ -5,6 +5,7 @@ #include <unistd.h> #include <string.h> #include <stdlib.h> +#include <limits.h> #include "cache.h" #include "commit.h" #include <errno.h> --- a/sha1_file.c +++ b/sha1_file.c
@@ -7,6 +7,7 @@ * creation etc. */ #include <stdarg.h> +#include <limits.h> #include "cache.h" const char *sha1_file_directory = NULL;