--- a/configure.ac
+++ b/configure.ac
@@ -9,6 +9,12 @@
 
 AC_PROG_CXX
 AC_C_BIGENDIAN
+# Some OpenHome includes need these defines
+if test "x$ac_cv_c_bigendian" = "xyes"; then
+    CPPFLAGS="$CPPFLAGS -DDEFINE_BIG_ENDIAN"
+else
+    CPPFLAGS="$CPPFLAGS -DDEFINE_LITTLE_ENDIAN"
+fi
 
 AC_ARG_WITH(openhome, 
     AC_HELP_STRING([--with-openhome=topOpenhomeDir],