Commit 5735147e5ff5b389ef131effd367c64b45a4c2ad

Authored by Juan Quintela
Committed by Anthony Liguori
1 parent 56ffaf25

rename HAVE_MACHINE_BSWAP_H to CONFIG_MACHINE_BSWAP_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
@@ -5,7 +5,7 @@ @@ -5,7 +5,7 @@
5 5
6 #include <inttypes.h> 6 #include <inttypes.h>
7 7
8 -#ifdef HAVE_MACHINE_BSWAP_H 8 +#ifdef CONFIG_MACHINE_BSWAP_H
9 #include <sys/endian.h> 9 #include <sys/endian.h>
10 #include <sys/types.h> 10 #include <sys/types.h>
11 #include <machine/bswap.h> 11 #include <machine/bswap.h>
@@ -64,7 +64,7 @@ static inline uint64_t bswap64(uint64_t x) @@ -64,7 +64,7 @@ static inline uint64_t bswap64(uint64_t x)
64 return bswap_64(x); 64 return bswap_64(x);
65 } 65 }
66 66
67 -#endif /* ! HAVE_MACHINE_BSWAP_H */ 67 +#endif /* ! CONFIG_MACHINE_BSWAP_H */
68 68
69 static inline void bswap16s(uint16_t *s) 69 static inline void bswap16s(uint16_t *s)
70 { 70 {
configure
@@ -1550,7 +1550,7 @@ EOF @@ -1550,7 +1550,7 @@ EOF
1550 int main(void) { return bswap32(0); } 1550 int main(void) { return bswap32(0); }
1551 EOF 1551 EOF
1552 if $cc $ARCH_CFLAGS -o $TMPE $TMPC >/dev/null 2> /dev/null ; then 1552 if $cc $ARCH_CFLAGS -o $TMPE $TMPC >/dev/null 2> /dev/null ; then
1553 - echo "#define HAVE_MACHINE_BSWAP_H 1" >> $config_host_h 1553 + echo "#define CONFIG_MACHINE_BSWAP_H 1" >> $config_host_h
1554 fi 1554 fi
1555 fi 1555 fi
1556 1556