提交 936dfb80 编写于 作者: J Juan Quintela 提交者: Anthony Liguori

rename HAVE_BYTESWAP_H to CONFIG_BYTESWAP_H

Signed-off-by: NJuan Quintela <quintela@redhat.com>
Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
上级 9788c9ca
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
#include <machine/bswap.h> #include <machine/bswap.h>
#else #else
#ifdef HAVE_BYTESWAP_H #ifdef CONFIG_BYTESWAP_H
#include <byteswap.h> #include <byteswap.h>
#else #else
...@@ -47,7 +47,7 @@ ...@@ -47,7 +47,7 @@
(uint64_t)(((uint64_t)(__x) & (uint64_t)0xff00000000000000ULL) >> 56) )); \ (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) static inline uint16_t bswap16(uint16_t x)
{ {
......
...@@ -1541,7 +1541,7 @@ else ...@@ -1541,7 +1541,7 @@ else
int main(void) { return bswap_32(0); } int main(void) { return bswap_32(0); }
EOF EOF
if $cc $ARCH_CFLAGS -o $TMPE $TMPC >/dev/null 2> /dev/null ; then 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 fi
cat > $TMPC << EOF cat > $TMPC << EOF
#include <sys/endian.h> #include <sys/endian.h>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册