changeset 13405:e7645f87b96f

test-linkat: avoid failed assertion on "other" architectures * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat, lstat, mkdir. Patch by John Rigby, to fix FTBFS on armel, powerpc, sparc: https://bugs.launchpad.net/bugs/591968
author Jim Meyering <meyering@redhat.com>
date Fri, 11 Jun 2010 08:50:08 +0200
parents 2a548c2eb40e
children afddde84348b
files ChangeLog tests/test-linkat.c
diffstat 2 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2010-06-11  Jim Meyering  <meyering@redhat.com>
+
+	test-linkat: avoid failed assertion on "other" architectures
+	* tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
+	lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
+	sparc: https://bugs.launchpad.net/bugs/591968
+
 2010-06-11  Jim Meyering  <meyering@redhat.com>
 
 	printf.m4: avoid autoconf's "Expanded Before Required" warning
--- a/tests/test-linkat.c
+++ b/tests/test-linkat.c
@@ -29,6 +29,7 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
+#include <sys/stat.h>
 
 #include "areadlink.h"
 #include "filenamecat.h"