I'd misunderstood what Python struct meant by the *standard* size, and
what I'd wanted in the guard was the native size, so ask for that (via
'@').
Thanks to Robert Edmunds for running a build through the Debian buildds
and then reporting the problem that revealed on s390x.
Signed-off-by: Rob Browning <rlb@defaultvalue.org>
Tested-by: Rob Browning <rlb@defaultvalue.org>
get_linux_file_attr = set_linux_file_attr = None
+# See the bup_get_linux_file_attr() comments.
_suppress_linux_file_attr = \
- sys.byteorder == 'big' and struct.calcsize('=l') > struct.calcsize('=i')
+ sys.byteorder == 'big' and struct.calcsize('@l') > struct.calcsize('@i')
def check_linux_file_attr_api():
global get_linux_file_attr, set_linux_file_attr