aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJuan Quintela <quintela@redhat.com>2009-07-27 16:13:01 +0200
committerAnthony Liguori <aliguori@us.ibm.com>2009-07-27 14:09:20 -0500
commit5735147e5ff5b389ef131effd367c64b45a4c2ad (patch)
treea560133e47e6a2343f2300c5c36424d52dc9b7d3
parent56ffaf254851cc80e6354420e883e66d810dffb2 (diff)
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>
-rw-r--r--bswap.h4
-rwxr-xr-xconfigure2
2 files changed, 3 insertions, 3 deletions
diff --git a/bswap.h b/bswap.h
index 1dd357eb9d..864bbebf9b 100644
--- 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)
{
diff --git a/configure b/configure
index 7a46c966ac..61f4c7830d 100755
--- 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