[PATCH] Add #include <limits.h> so that git compiles under Solaris
authorThomas Glanzmann <sithglan@stud.uni-erlangen.de>
Sat, 7 May 2005 08:41:41 +0000 (10:41 +0200)
committerJunio C Hamano <junkio@cox.net>
Sat, 7 May 2005 19:32:21 +0000 (12:32 -0700)
<JC> Editorial Note.  We may want to include standard headers in one
of those headers everybody includes, e.g. cache.h, to reduce clutters,
but this commit is as Thomas posted to the GIT list.

Date: Sat, 7 May 2005 10:41:41 +0200
Signed-off-by: Thomas Glanzmann <sithglan@stud.uni-erlangen.de>
Signed-off-by: Junio C Hamano <junkio@cox.net>
diff-tree-helper.c
diff.c
local-pull.c
sha1_file.c

index a683283..51bb658 100644 (file)
@@ -1,6 +1,7 @@
 /*
  * Copyright (C) 2005 Junio C Hamano
  */
+#include <limits.h>
 #include "cache.h"
 #include "strbuf.h"
 #include "diff.h"
diff --git a/diff.c b/diff.c
index 95488cd..748ab4a 100644 (file)
--- 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"
 
index 1eec892..acfcbb6 100644 (file)
@@ -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>
index ee62eee..bf8fd6a 100644 (file)
@@ -7,6 +7,7 @@
  * creation etc.
  */
 #include <stdarg.h>
+#include <limits.h>
 #include "cache.h"
 
 #ifndef O_NOATIME