os: Fix 64-bit Linux support.

ino_t and off_t types (d_ino and d_off fields) appear to be defined as unsigned
long on Linux.

TODO: Move readdir wrapper function to C, because DIRENT layout is inherently
OS-specific.
pull/7/head
Paul Sokolovsky 2014-09-06 17:04:05 +03:00
rodzic 46ede279d8
commit a3495c40bf
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -105,7 +105,7 @@ def ilistdir_ex(path="."):
if not dir:
raise_error()
res = []
dirent_fmt = "iiHB256s"
dirent_fmt = "LLHB256s"
while True:
dirent = readdir_(dir)
if not dirent: