test-linkat: avoid failed assertion on "other" architectures
authorJim Meyering <meyering@redhat.com>
Fri, 11 Jun 2010 06:50:08 +0000 (08:50 +0200)
committerJim Meyering <meyering@redhat.com>
Fri, 11 Jun 2010 07:07:51 +0000 (09:07 +0200)
* 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

ChangeLog
tests/test-linkat.c

index 0e27cc7acc6aa147ae15b540d1844f0ea3cd60dc..cab8f6c6fba01e84560b86219ae8492dd67a6336 100644 (file)
--- 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
index 1dbfad5270510834b8b9cbc603652f8230a3e548..cee1c9972c485c07c1c6aa0ad49c0143a3ed92c0 100644 (file)
@@ -29,6 +29,7 @@ SIGNATURE_CHECK (linkat, int, (int, char const *, int, char const *, int));
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
+#include <sys/stat.h>
 
 #include "areadlink.h"
 #include "filenamecat.h"