summaryrefslogtreecommitdiffstats
path: root/tests/bugs/bug-808400-flock.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/bugs/bug-808400-flock.c')
-rw-r--r--tests/bugs/bug-808400-flock.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/bugs/bug-808400-flock.c b/tests/bugs/bug-808400-flock.c
index 4770c81dc69..bd2ce8cfb01 100644
--- a/tests/bugs/bug-808400-flock.c
+++ b/tests/bugs/bug-808400-flock.c
@@ -7,6 +7,10 @@
#include <fcntl.h>
#include <sys/wait.h>
+#ifndef linux
+#define fstat64(fd, st) fstat(fd, st)
+#endif
+
int
run_child (char *filename)
{