summaryrefslogtreecommitdiffstats
path: root/cpio
diff options
context:
space:
mode:
Diffstat (limited to 'cpio')
-rw-r--r--cpio/mkbootfs.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/cpio/mkbootfs.c b/cpio/mkbootfs.c
index b7eb8c9f8..323a09d6e 100644
--- a/cpio/mkbootfs.c
+++ b/cpio/mkbootfs.c
@@ -44,7 +44,11 @@ static struct fs_config_entry* canned_config = NULL;
/* Each line in the canned file should be a path plus three ints (uid,
* gid, mode). */
+#ifdef PATH_MAX
#define CANNED_LINE_LENGTH (PATH_MAX+100)
+#else
+#define CANNED_LINE_LENGTH (1024)
+#endif
static int verbose = 0;
static int total_size = 0;