mirror of
https://gitee.com/openharmony/third_party_f2fs-tools
synced 2024-11-23 01:59:54 +00:00
configure: add check for bswap_64
include/f2fs_fs.h checks the HAVE_BSWAP_64 conidtional, but configure nevers checks for it. Add a check that the function is indeed declared, and fix the variable name to match the naming scheme of autoconf (and not those of WAF like is used by samba), and adapt the check as suggested in the autoconf manual. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Cc: Gustavo Zacarias <gustavo@zacarias.com.ar> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
This commit is contained in:
parent
936945a25d
commit
dc532e5316
@ -72,6 +72,9 @@ AC_CHECK_FUNCS_ONCE([
|
||||
memset
|
||||
])
|
||||
|
||||
AS_IF([test "$ac_cv_header_byteswap_h" = "yes"],
|
||||
[AC_CHECK_DECLS([bswap_64],,,[#include <byteswap.h>])])
|
||||
|
||||
# Install directories
|
||||
AC_PREFIX_DEFAULT([/usr])
|
||||
AC_SUBST([sbindir], [/sbin])
|
||||
|
@ -63,7 +63,7 @@ static inline uint32_t bswap_32(uint32_t val)
|
||||
}
|
||||
#endif /* !HAVE_BYTESWAP_H */
|
||||
|
||||
#if !HAVE_BSWAP_64
|
||||
#if defined HAVE_DECL_BSWAP_64 && !HAVE_DECL_BSWAP_64
|
||||
/**
|
||||
* bswap_64 - reverse bytes in a uint64_t value.
|
||||
* @val: value whose bytes to swap.
|
||||
|
Loading…
Reference in New Issue
Block a user