From a3495c40bfe25ff7791e8db3e209d65c6e3e407a Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Sat, 6 Sep 2014 17:04:05 +0300 Subject: [PATCH] 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. --- os/os/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/os/os/__init__.py b/os/os/__init__.py index b4488327..6d9d5ded 100644 --- a/os/os/__init__.py +++ b/os/os/__init__.py @@ -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: