# [PATCH] Add #include <limits.h> so that git compiles under Solaris

1 messages from 2005-05-07 to 2005-05-07. Participants: Thomas Glanzmann.
Thread: https://gitlist.dev/t/523

## Thomas Glanzmann, 2005-05-07 08:41

Subject: [PATCH] Add #include <limits.h> so that git compiles under Solaris
Message-ID: <20050507084141.GD23680@cip.informatik.uni-erlangen.de>
URL: https://gitlist.dev/e/20050507084141.GD23680%40cip.informatik.uni-erlangen.de

```
[PATCH] Add #include <limits.h> so that git compiles under Solaris

Signed-Off-by: Thomas Glanzmann <sithglan@stud.uni-erlangen.de>

--- 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;
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

```
