summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--diff-tree-helper.c1
-rw-r--r--diff.c1
-rw-r--r--local-pull.c1
-rw-r--r--sha1_file.c1
4 files changed, 4 insertions, 0 deletions
diff --git a/diff-tree-helper.c b/diff-tree-helper.c
index a683283..51bb658 100644
--- 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"
diff --git a/diff.c b/diff.c
index 95488cd..748ab4a 100644
--- 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"
diff --git a/local-pull.c b/local-pull.c
index 1eec892..acfcbb6 100644
--- 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>
diff --git a/sha1_file.c b/sha1_file.c
index ee62eee..bf8fd6a 100644
--- a/sha1_file.c
+++ b/sha1_file.c
@@ -7,6 +7,7 @@
* creation etc.
*/
#include <stdarg.h>
+#include <limits.h>
#include "cache.h"
#ifndef O_NOATIME