On 20090131.1659+0100, Vincent Sanders <vince@kyllikki.org> wrote:
author"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Sat Jan 31 17:47:10 2009 +0000 (2009-01-31)
changeset 118292721a47a4bf
parent 1181 2e88d85d6ffc
child 1183 268544004e77
On 20090131.1659+0100, Vincent Sanders <vince@kyllikki.org> wrote:
[This] patch is a simple one for strace 4.5.17 .They altered the
exported kernel headers post 2.6.26 and removed a header. This patch
is a backport from the strace revision system. This allows strace to
be built with 2.6.27 and later kernel versions

/trunk/patches/strace/4.5.17/190-dirent-include.patch | 33 33 0 0 +++++++++++++++++++++++++
1 file changed, 33 insertions(+)
patches/strace/4.5.17/190-dirent-include.patch
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/patches/strace/4.5.17/190-dirent-include.patch	Sat Jan 31 17:47:10 2009 +0000
     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