squashfs: make inline functions static to fix build errors
[openwrt.git] / tools / squashfs / patches / 110-no_nonstatic_inline.patch
1 --- a/squashfs-tools/mksquashfs.c
2 +++ b/squashfs-tools/mksquashfs.c
3 @@ -1347,7 +1347,7 @@ struct inode_info *lookup_inode(struct s
4  }
5  
6  
7 -inline void add_dir_entry(char *name, char *pathname, struct dir_info *sub_dir, struct inode_info *inode_info, void *data, struct dir_info *dir)
8 +static inline void add_dir_entry(char *name, char *pathname, struct dir_info *sub_dir, struct inode_info *inode_info, void *data, struct dir_info *dir)
9  {
10         if((dir->count % DIR_ENTRIES) == 0)
11                 if((dir->list = realloc(dir->list, (dir->count + DIR_ENTRIES) * sizeof(struct dir_ent *))) == NULL)