diff options
Diffstat (limited to 'ports')
-rw-r--r-- | ports/linux/statvfs/guts/statvfs.c | 13 | ||||
-rw-r--r-- | ports/linux/statvfs/wrapfuncs.in | 1 | ||||
-rwxr-xr-x | ports/linux/subports | 13 |
3 files changed, 27 insertions, 0 deletions
diff --git a/ports/linux/statvfs/guts/statvfs.c b/ports/linux/statvfs/guts/statvfs.c new file mode 100644 index 0000000..c516649 --- /dev/null +++ b/ports/linux/statvfs/guts/statvfs.c @@ -0,0 +1,13 @@ +/* + * Copyright (c) 2018 Wind River Systems; see + * guts/COPYRIGHT for information. + * + * int statvfs(const char *path, struct statvfs *buf) + * int rc = -1; + */ + + rc = real_statvfs(path, buf); + +/* return rc; + * } + */ diff --git a/ports/linux/statvfs/wrapfuncs.in b/ports/linux/statvfs/wrapfuncs.in new file mode 100644 index 0000000..1afb64d --- /dev/null +++ b/ports/linux/statvfs/wrapfuncs.in @@ -0,0 +1 @@ +int statvfs(const char *path, struct statvfs *buf); diff --git a/ports/linux/subports b/ports/linux/subports index 507794e..a29044a 100755 --- a/ports/linux/subports +++ b/ports/linux/subports @@ -41,3 +41,16 @@ else echo "linux/noxattr" fi rm -f dummy.c dummy.o + +cat > dummy.c <<EOF +#include <sys/statvfs.h> +int i; +EOF +if ! ${CC} -c -o dummy.o dummy.c >/dev/null 2>&1; then + echo >&2 "Warning: Can't compile trivial program using <sys/statvfs.h>". + echo >&2 " xattr support will require that header." +else + echo "linux/statvfs" +fi +rm -f dummy.c dummy.o + |