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 0e27cc7..cab8f6c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
 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
        * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
        rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
index 1dbfad5..cee1c99 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"