projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
gettimeofday: port recent C++ fix to Emacs
[gnulib.git]
/
tests
/
test-fstat.c
diff --git
a/tests/test-fstat.c
b/tests/test-fstat.c
index
49b4838
..
8ce1527
100644
(file)
--- a/
tests/test-fstat.c
+++ b/
tests/test-fstat.c
@@
-22,6
+22,7
@@
SIGNATURE_CHECK (fstat, int, (int, struct stat *));
#include <errno.h>
+#include <unistd.h>
#include "macros.h"
@@
-39,6
+40,7
@@
main (int argc, char *argv[])
{
struct stat statbuf;
+ close (99);
errno = 0;
ASSERT (fstat (99, &statbuf) == -1);
ASSERT (errno == EBADF);