]> git.proxmox.com Git - qemu.git/commitdiff
rename HAVE_MACHINE_BSWAP_H to CONFIG_MACHINE_BSWAP_H
authorJuan Quintela <quintela@redhat.com>
Mon, 27 Jul 2009 14:13:01 +0000 (16:13 +0200)
committerAnthony Liguori <aliguori@us.ibm.com>
Mon, 27 Jul 2009 19:09:20 +0000 (14:09 -0500)
Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
bswap.h
configure

diff --git a/bswap.h b/bswap.h
index 1dd357eb9d5259225cb20b7e1de6f9f896f24f7c..864bbebf9be73f5d5935ed60d15c25fc3d577494 100644 (file)
--- a/bswap.h
+++ b/bswap.h
@@ -5,7 +5,7 @@
 
 #include <inttypes.h>
 
-#ifdef HAVE_MACHINE_BSWAP_H
+#ifdef CONFIG_MACHINE_BSWAP_H
 #include <sys/endian.h>
 #include <sys/types.h>
 #include <machine/bswap.h>
@@ -64,7 +64,7 @@ static inline uint64_t bswap64(uint64_t x)
     return bswap_64(x);
 }
 
-#endif /* ! HAVE_MACHINE_BSWAP_H */
+#endif /* ! CONFIG_MACHINE_BSWAP_H */
 
 static inline void bswap16s(uint16_t *s)
 {
index 7a46c966ace9890b2a817934cce444b93ee9e1dc..61f4c7830ded8b88c4a1a76f595f3aecfcd3c5e1 100755 (executable)
--- a/configure
+++ b/configure
@@ -1550,7 +1550,7 @@ EOF
 int main(void) { return bswap32(0); }
 EOF
   if $cc $ARCH_CFLAGS -o $TMPE $TMPC >/dev/null 2> /dev/null ; then
-    echo "#define HAVE_MACHINE_BSWAP_H 1" >> $config_host_h
+    echo "#define CONFIG_MACHINE_BSWAP_H 1" >> $config_host_h
   fi
 fi