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

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

## Thomas Glanzmann, 2005-05-06 13:36

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

```
[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;

```
