Commit 936dfb80f81df9f688cd37fbc1d93dc7b3f1d905

Authored by Juan Quintela
Committed by Anthony Liguori
1 parent 9788c9ca

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>
Showing 2 changed files with 3 additions and 3 deletions
... ... @@ -11,7 +11,7 @@
11 11 #include <machine/bswap.h>
12 12 #else
13 13  
14   -#ifdef HAVE_BYTESWAP_H
  14 +#ifdef CONFIG_BYTESWAP_H
15 15 #include <byteswap.h>
16 16 #else
17 17  
... ... @@ -47,7 +47,7 @@
47 47 (uint64_t)(((uint64_t)(__x) & (uint64_t)0xff00000000000000ULL) >> 56) )); \
48 48 })
49 49  
50   -#endif /* !HAVE_BYTESWAP_H */
  50 +#endif /* !CONFIG_BYTESWAP_H */
51 51  
52 52 static inline uint16_t bswap16(uint16_t x)
53 53 {
... ...
configure
... ... @@ -1541,7 +1541,7 @@ else
1541 1541 int main(void) { return bswap_32(0); }
1542 1542 EOF
1543 1543 if $cc $ARCH_CFLAGS -o $TMPE $TMPC >/dev/null 2> /dev/null ; then
1544   - echo "#define HAVE_BYTESWAP_H 1" >> $config_host_h
  1544 + echo "#define CONFIG_BYTESWAP_H 1" >> $config_host_h
1545 1545 fi
1546 1546 cat > $TMPC << EOF
1547 1547 #include <sys/endian.h>
... ...