summaryrefslogtreecommitdiffstats
path: root/mdadm.h
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2009-12-30 13:46:52 +1100
committerNeilBrown <neilb@suse.de>2009-12-30 13:46:52 +1100
commit8409bc51e828bdf748138882e89229d6f6080b7c (patch)
treeac4cc8b3b7982a06db6f3ea9005f3c300b1abf8b /mdadm.h
parentc1e3ab8c1e76f4ae71ab23bcf5e8c2bf8bd3774e (diff)
parentdd9bb2fbed335f69225ea1a3514bd27422288a18 (diff)
downloadmdadm-8409bc51e828bdf748138882e89229d6f6080b7c.tar.gz
mdadm-8409bc51e828bdf748138882e89229d6f6080b7c.tar.xz
mdadm-8409bc51e828bdf748138882e89229d6f6080b7c.zip
Merge branch 'klockwork' of git://github.com/djbw/mdadm
Conflicts: super-intel.c
Diffstat (limited to 'mdadm.h')
-rw-r--r--mdadm.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/mdadm.h b/mdadm.h
index 7ff63cd..836c64d 100644
--- a/mdadm.h
+++ b/mdadm.h
@@ -1023,3 +1023,10 @@ static inline int xasprintf(char **strp, const char *fmt, ...) {
#define ALGORITHM_PARITY_0_6 20
#define ALGORITHM_PARITY_N_6 ALGORITHM_PARITY_N
+/* Define PATH_MAX in case we don't use glibc or standard library does
+ * not have PATH_MAX defined. Assume max path length is 4K characters.
+ */
+#ifndef PATH_MAX
+#define PATH_MAX 4096
+#endif
+