commit | a865f6d85a52d0a77d1aef8d5fb5bece08e3b246 | [log] [tgz] |
---|---|---|
author | Doug Zongker <dougz@android.com> | Fri May 04 16:45:35 2012 -0700 |
committer | Doug Zongker <dougz@android.com> | Fri May 04 16:45:35 2012 -0700 |
tree | bc39eabb5f90e73fe70865c31003002e16050fe7 | |
parent | 0375fd133a95f47d0ea12b16ca3d7ccf04ea6362 [diff] [blame] |
fix mkbootfs for systems that lack PATH_MAX Change-Id: I1b841bde6de6c8e762c5fba35e6d6d701f18bb05
diff --git a/cpio/mkbootfs.c b/cpio/mkbootfs.c index b7eb8c9..323a09d 100644 --- a/cpio/mkbootfs.c +++ b/cpio/mkbootfs.c
@@ -44,7 +44,11 @@ /* 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;