Browse Source

openssh: Drop old patch

android-5
Fredrik Fornwall 9 years ago
parent
commit
a014091fd2
  1. 34
      packages/openssh/no_statvfs.patch

34
packages/openssh/no_statvfs.patch

@ -1,34 +0,0 @@
diff -u -r ../openssh-6.5p1/openbsd-compat/bsd-statvfs.c ./openbsd-compat/bsd-statvfs.c
--- ../openssh-6.5p1/openbsd-compat/bsd-statvfs.c 2014-01-17 08:10:59.000000000 +0100
+++ ./openbsd-compat/bsd-statvfs.c 2014-02-11 11:01:33.000000000 +0100
@@ -27,6 +27,12 @@
#include <errno.h>
+#ifdef __ANDROID__
+# include <sys/vfs.h>
+# define statvfs statfs
+# define fstatvfs fstatfs
+#endif
+
static void
copy_statfs_to_statvfs(struct statvfs *to, struct statfs *from)
{
@@ -37,10 +43,17 @@
to->f_bavail = from->f_bavail;
to->f_files = from->f_files;
to->f_ffree = from->f_ffree;
+#ifdef __ANDROID__
+ to->f_bavail = from->f_bavail;
+ to->f_fsid = from->f_fsid;
+ to->f_flags = from->f_flags;
+ to->f_namelen = from->f_namelen;
+#else
to->f_favail = from->f_ffree; /* no exact equivalent */
to->f_fsid = 0; /* XXX fix me */
to->f_flag = from->f_flags;
to->f_namemax = MNAMELEN;
+#endif
}
# ifndef HAVE_STATVFS
Loading…
Cancel
Save