summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Martin Szulecki2013-03-19 18:33:36 +0100
committerGravatar Martin Szulecki2013-03-19 18:33:36 +0100
commitedc30f0273f38e61167fcbec7da3d0fb8db03b04 (patch)
treed67a94cb1f72fcf317f9227e8ca99c069608a2b7
parent7eae52efbb2c43af2bd2a16fbc858610bfdbaeff (diff)
downloadlibimobiledevice-edc30f0273f38e61167fcbec7da3d0fb8db03b04.tar.gz
libimobiledevice-edc30f0273f38e61167fcbec7da3d0fb8db03b04.tar.bz2
configure.ac: Fix broken byte order detection for platforms without endian.h
This could ultimatively lead to broken AFC communication with a device on affected platforms due to bad byte order in the AFC protocol header.
-rw-r--r--configure.ac2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 97604e4..cf644a8 100644
--- a/configure.ac
+++ b/configure.ac
@@ -56,7 +56,7 @@ if test "x$have_vasprintf" = "xyes"; then
fi
AC_CHECK_HEADER(endian.h, [ac_cv_have_endian_h="yes"], [ac_cv_have_endian_h="no"])
-if test "x$ac_cv_have_endian" = "xno"; then
+if test "x$ac_cv_have_endian_h" = "xno"; then
AC_DEFINE(__LITTLE_ENDIAN,1234,[little endian])
AC_DEFINE(__BIG_ENDIAN,4321,[big endian])
AC_C_BIGENDIAN([ac_cv_c_bigendian="yes"], [ac_cv_c_bigendian="no"], [], [])