From a8a3178445e8a229671977411f44c04844dcc1ab Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Thu, 9 Jan 2014 12:37:12 -0800 Subject: [PATCH] Add the glibc-compatible d_fileno. d_ino is the POSIX name, but glibc also offers d_fileno, and that's what strace is using. Change-Id: I3fadbe7a64700b42e78c7f4631620e864d43147b --- libc/include/dirent.h | 1 + 1 file changed, 1 insertion(+) diff --git a/libc/include/dirent.h b/libc/include/dirent.h index 3b006451c..129cdfaee 100644 --- a/libc/include/dirent.h +++ b/libc/include/dirent.h @@ -53,6 +53,7 @@ struct dirent { unsigned char d_type; char d_name[256]; }; +#define d_fileno d_ino #define dirent64 dirent typedef struct DIR DIR;