From: Theodore Ts'o Date: Sat, 23 Jun 2001 00:54:11 +0000 (-0400) Subject: bitops.h: The C language versions of ext2fs_swab16/32 need to be X-Git-Tag: E2FSPROGS-1_22~8 X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=16645f802a809195757f04daa421356f90dc5857;p=tools%2Fe2fsprogs.git bitops.h: The C language versions of ext2fs_swab16/32 need to be included if EXT2FS_ENABLE_SWAPFS is defined, since we need to support byte swapping even if we don't support the conversion functions. (Fixes Debian bug #101686). --- diff --git a/lib/ext2fs/ChangeLog b/lib/ext2fs/ChangeLog index c91b212..38e026a 100644 --- a/lib/ext2fs/ChangeLog +++ b/lib/ext2fs/ChangeLog @@ -1,5 +1,10 @@ 2001-06-22 Theodore Tso + * bitops.h: The C language versions of ext2fs_swab16/32 need to be + included if EXT2FS_ENABLE_SWAPFS is defined, since we need + to support byte swapping even if we don't support the + conversion functions. (Fixes Debian bug #101686). + * dirblock.c (ext2fs_read_dir_block): Remove use of dir_entry_2 since the byte-swapping code all assumes the ext2_dir_entry structure. (It's a question of whether or diff --git a/lib/ext2fs/bitops.h b/lib/ext2fs/bitops.h index 464f5e9..3a3e275 100644 --- a/lib/ext2fs/bitops.h +++ b/lib/ext2fs/bitops.h @@ -339,7 +339,7 @@ _INLINE_ int ext2fs_test_bit(int nr, const void *addr) #endif /* __sparc__ */ -#if !defined(_EXT2_HAVE_ASM_SWAB_) && defined(ENABLE_SWAPFS) +#if !defined(_EXT2_HAVE_ASM_SWAB_) && defined(EXT2FS_ENABLE_SWAPFS) _INLINE_ __u16 ext2fs_swab16(__u16 val) {