summaryrefslogtreecommitdiff
path: root/git-compat-util.h
diff options
context:
space:
mode:
authorDavid Michael <fedora.dm0@gmail.com>2012-12-14 19:56:58 (GMT)
committerJunio C Hamano <gitster@pobox.com>2012-12-15 18:13:23 (GMT)
commit6ede720529b00115abe46b8ab524bf06c58047e2 (patch)
treebbbfba906aa57ede3587f8c4db43b54a09f5d095 /git-compat-util.h
parentbdd478d620034dc6517aea940f5dc6b88f780c04 (diff)
downloadgit-6ede720529b00115abe46b8ab524bf06c58047e2.zip
git-6ede720529b00115abe46b8ab524bf06c58047e2.tar.gz
git-6ede720529b00115abe46b8ab524bf06c58047e2.tar.bz2
Support builds when sys/param.h is missing
An option is added to the Makefile to skip the inclusion of sys/param.h. The only known platform with this condition thus far is the z/OS UNIX System Services environment. Signed-off-by: David Michael <fedora.dm0@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git-compat-util.h')
-rw-r--r--git-compat-util.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/git-compat-util.h b/git-compat-util.h
index 2e79b8a..ace1549 100644
--- a/git-compat-util.h
+++ b/git-compat-util.h
@@ -104,7 +104,9 @@
#endif
#include <errno.h>
#include <limits.h>
+#ifndef NO_SYS_PARAM_H
#include <sys/param.h>
+#endif
#include <sys/types.h>
#include <dirent.h>
#include <sys/time.h>