Skip to content

Commit

Permalink
Fix build error.
Browse files Browse the repository at this point in the history
  • Loading branch information
typeling1578 authored Jul 20, 2022
1 parent 63c055a commit 369113a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions xar/lib/ext2.c
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,10 @@ int xar_ext2attr_archive(xar_t x, xar_file_t f, const char* file, const char *bu
if(! (flags & ~EXT2_NOCOMPR_FL) )
x_addprop(f, "NoCompBlock");
#endif
#ifdef EXT2_ECOMPR_FL
if(! (flags & ~EXT2_ECOMPR_FL) )
x_addprop(f, "CompError");
#endif
if(! (flags & ~EXT2_BTREE_FL) )
x_addprop(f, "BTree");
if(! (flags & ~EXT2_INDEX_FL) )
Expand Down Expand Up @@ -229,8 +231,10 @@ int xar_ext2attr_extract(xar_t x, xar_file_t f, const char* file, char *buffer,
if( e2prop_get(f, "NoCompBlock", (char **)&tmp) == 0 )
flags |= EXT2_NOCOMPR_FL ;
#endif
#ifdef EXT2_ECOMPR_FL
if( e2prop_get(f, "CompError", (char **)&tmp) == 0 )
flags |= EXT2_ECOMPR_FL ;
#endif
if( e2prop_get(f, "BTree", (char **)&tmp) == 0 )
flags |= EXT2_BTREE_FL ;
if( e2prop_get(f, "HashIndexed", (char **)&tmp) == 0 )
Expand Down

0 comments on commit 369113a

Please sign in to comment.