summaryrefslogtreecommitdiffstats
path: root/cpio
diff options
context:
space:
mode:
authorDoug Zongker2012-05-04 18:45:35 -0500
committerDoug Zongker2012-05-04 18:45:35 -0500
commita865f6d85a52d0a77d1aef8d5fb5bece08e3b246 (patch)
treebc39eabb5f90e73fe70865c31003002e16050fe7 /cpio
parent0375fd133a95f47d0ea12b16ca3d7ccf04ea6362 (diff)
downloadplatform-system-core-a865f6d85a52d0a77d1aef8d5fb5bece08e3b246.tar.gz
platform-system-core-a865f6d85a52d0a77d1aef8d5fb5bece08e3b246.tar.xz
platform-system-core-a865f6d85a52d0a77d1aef8d5fb5bece08e3b246.zip
fix mkbootfs for systems that lack PATH_MAX
Change-Id: I1b841bde6de6c8e762c5fba35e6d6d701f18bb05
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;
44 44
45/* Each line in the canned file should be a path plus three ints (uid, 45/* Each line in the canned file should be a path plus three ints (uid,
46 * gid, mode). */ 46 * gid, mode). */
47#ifdef PATH_MAX
47#define CANNED_LINE_LENGTH (PATH_MAX+100) 48#define CANNED_LINE_LENGTH (PATH_MAX+100)
49#else
50#define CANNED_LINE_LENGTH (1024)
51#endif
48 52
49static int verbose = 0; 53static int verbose = 0;
50static int total_size = 0; 54static int total_size = 0;