rename HAVE_BYTESWAP_H to CONFIG_BYTESWAP_H

Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
Juan Quintela 2009-07-27 16:13:03 +02:00 committed by Anthony Liguori
parent 9788c9cadf
commit 936dfb80f8
2 changed files with 3 additions and 3 deletions

View file

@ -11,7 +11,7 @@
#include <machine/bswap.h>
#else
#ifdef HAVE_BYTESWAP_H
#ifdef CONFIG_BYTESWAP_H
#include <byteswap.h>
#else
@ -47,7 +47,7 @@
(uint64_t)(((uint64_t)(__x) & (uint64_t)0xff00000000000000ULL) >> 56) )); \
})
#endif /* !HAVE_BYTESWAP_H */
#endif /* !CONFIG_BYTESWAP_H */
static inline uint16_t bswap16(uint16_t x)
{

2
configure vendored
View file

@ -1541,7 +1541,7 @@ else
int main(void) { return bswap_32(0); }
EOF
if $cc $ARCH_CFLAGS -o $TMPE $TMPC >/dev/null 2> /dev/null ; then
echo "#define HAVE_BYTESWAP_H 1" >> $config_host_h
echo "#define CONFIG_BYTESWAP_H 1" >> $config_host_h
fi
cat > $TMPC << EOF
#include <sys/endian.h>