diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2011-09-19 14:25:21 +0300 |
---|---|---|
committer | Artem Bityutskiy <artem.bityutskiy@intel.com> | 2011-09-21 09:35:03 +0300 |
commit | cbfaa5b64f8bd9844094d49f42ff7620ec71418e (patch) | |
tree | 020a88f53ff273f9f4711899d02f254dee97e2d9 /jffs2reader.c | |
parent | 208ba19802cce7359a8ca1626aad9045e16e6808 (diff) |
jffs2reader: get rid of linker error
There is a linker errors:
undefined reference to `target_endian'
This patch fixes the issue and turns on the jffs2reader build in the Makefile.
Signed-off-by: Alexey Dokuchaev <danfe@nsu.ru>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@intel.com>
Diffstat (limited to 'jffs2reader.c')
-rw-r--r-- | jffs2reader.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/jffs2reader.c b/jffs2reader.c index ef9dbe3..b995f19 100644 --- a/jffs2reader.c +++ b/jffs2reader.c @@ -102,6 +102,8 @@ struct dir { char name[256]; }; +int target_endian = __BYTE_ORDER; + void putblock(char *, size_t, size_t *, struct jffs2_raw_inode *); struct dir *putdir(struct dir *, struct jffs2_raw_dirent *); void printdir(char *o, size_t size, struct dir *d, char *path, |