blob: 0c348ead89e01596caf39cd93012c5660d954182 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
#! /bin/sh /usr/share/dpatch/dpatch-run
## 99_kfbsd_fstat_patch.dpatch by Michael Stone <mstone@debian.org>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: No description.
@DPATCH@
Index: b/lib/fstatat.c
===================================================================
--- a/lib/fstatat.c
+++ b/lib/fstatat.c
@@ -132,4 +132,15 @@ stat_func (char const *name, struct stat
# undef AT_FUNC_POST_FILE_PARAM_DECLS
# undef AT_FUNC_POST_FILE_ARGS
+#ifdef __FreeBSD_kernel__
+
+int __fxstatat(int version, int fd, const char *file, struct stat *st, int flag)
+{
+ typedef int (*tp)(int, const char *, struct stat *, int);
+ volatile tp f = fstatat;
+ return f(fd, file, st, flag);
+}
+
+#endif
+
#endif /* !HAVE_FSTATAT */
|