1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/patches/strace/4.5.17/190-dirent-include.patch Tue Dec 13 23:32:39 2011 +0100
1.3 @@ -0,0 +1,33 @@
1.4 +--- strace-orig/file.c 2008/05/20 04:56:18 1.92
1.5 ++++ strace/file.c 2008/08/01 01:13:10 1.93
1.6 +@@ -28,21 +28,22 @@
1.7 + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
1.8 + * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
1.9 + *
1.10 +- * $Id: file.c,v 1.92 2008/05/20 04:56:18 roland Exp $
1.11 ++ * $Id: file.c,v 1.93 2008/08/01 01:13:10 roland Exp $
1.12 + */
1.13 +
1.14 + #include "defs.h"
1.15 +
1.16 + #include <dirent.h>
1.17 ++
1.18 + #ifdef LINUX
1.19 +-#define dirent kernel_dirent
1.20 +-#define dirent64 kernel_dirent64
1.21 +-#include <linux/types.h>
1.22 +-#include <linux/dirent.h>
1.23 +-#undef dirent
1.24 +-#undef dirent64
1.25 ++struct kernel_dirent {
1.26 ++ unsigned long d_ino;
1.27 ++ unsigned long d_off;
1.28 ++ unsigned short d_reclen;
1.29 ++ char d_name[1];
1.30 ++};
1.31 + #else
1.32 +-#define kernel_dirent dirent
1.33 ++# define kernel_dirent dirent
1.34 + #endif
1.35 +
1.36 + #ifdef LINUX