summaryrefslogtreecommitdiffstats
path: root/tests/bugs/bug-858242.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/bugs/bug-858242.c')
-rw-r--r--tests/bugs/bug-858242.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/bugs/bug-858242.c b/tests/bugs/bug-858242.c
index 00a3a2d5f7d..ecdda2a5d23 100644
--- a/tests/bugs/bug-858242.c
+++ b/tests/bugs/bug-858242.c
@@ -7,6 +7,10 @@
#include <stdlib.h>
#include <unistd.h>
+#ifndef linux
+#define fstat64(fd, st) fstat(fd, st)
+#endif
+
int
main (int argc, char *argv[])
{