- if sysconfig.get_config_var('SIZEOF_TIME_T') == 4:
- self.LASTLOG_STRUCT = self.LASTLOG_STRUCT_32
- record_size = record_size_32
- elif sysconfig.get_config_var('SIZEOF_TIME_T') == 8:
+ # some 64bit arches have 32bit-compatible lastlog structures, others don't,
+ # in apparently incoherent ways, so hardcode a list...
+ if platform.machine() in ('ia64', 'aarch64', 's390x'):