Whamcloud - gitweb
bitops.h: The C language versions of ext2fs_swab16/32 need to be
authorTheodore Ts'o <tytso@mit.edu>
Sat, 23 Jun 2001 00:54:11 +0000 (20:54 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Sat, 23 Jun 2001 00:54:11 +0000 (20:54 -0400)
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).

lib/ext2fs/ChangeLog
lib/ext2fs/bitops.h

index c91b212..38e026a 100644 (file)
@@ -1,5 +1,10 @@
 2001-06-22  Theodore Tso  <tytso@valinux.com>
 
+       * 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
index 464f5e9..3a3e275 100644 (file)
@@ -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)
 {