File exifprobe-2.0.1-makebyteorder-endianness.patch of Package exifprobe

Index: exifprobe-2.0.1/makebyteorder.sh
===================================================================
--- exifprobe-2.0.1.orig/makebyteorder.sh
+++ exifprobe-2.0.1/makebyteorder.sh
@@ -6,8 +6,13 @@ then
     byteorder=`grep BYTE_ /usr/include/machine/endian.h`
 elif test -f /usr/include/bits/endian.h
 then
+if test -f /usr/include/bits/endianness.h
+then
+    byteorder=`grep BYTE_ /usr/include/bits/endianness.h`
+else
     byteorder=`grep BYTE_ /usr/include/bits/endian.h`
 fi
+fi
 
 case "${byteorder}" in
     *BIG*) echo "#define NATIVE_BYTEORDER_BIGENDIAN" > byteorder.h ;;
openSUSE Build Service is sponsored by