From: Stefan Sperling Date: Wed, 16 Mar 2011 10:37:59 GMT Subject: [PATCH] Include headers for getrlimit() in sha1_file.c Message-ID: <1300271879-2050-1-git-send-email-stsp@stsp.name> Fixes compilation error on OpenBSD: sha1_file.c: In function 'open_packed_git_1': sha1_file.c:718: error: storage size of 'lim' isn't known sha1_file.c:721: warning: implicit declaration of function 'getrlimit' sha1_file.c:721: error: 'RLIMIT_NOFILE' undeclared (first use in this function) sha1_file.c:718: warning: unused variable 'lim' Signed-off-by: Stefan Sperling --- sha1_file.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/sha1_file.c b/sha1_file.c index b4fcca8..f969b10 100644 --- a/sha1_file.c +++ b/sha1_file.c @@ -18,6 +18,10 @@ #include "pack-revindex.h" #include "sha1-lookup.h" +#include +#include +#include + #ifndef O_NOATIME #if defined(__linux__) && (defined(__i386__) || defined(__PPC__)) #define O_NOATIME 01000000 -- 1.7.3.5