+2005-09-28 Miklos Szeredi <miklos@szeredi.hu>
+
+ * UClibc fixes from Christian Magnusson
+
2005-09-27 Miklos Szeredi <miklos@szeredi.hu>
* Added NAME="%k" to util/udev.rules. Fix by Mattias Wadman.
[ --enable-util Compile with util ])
AC_ARG_ENABLE(example,
[ --enable-example Compile with examples ])
+AC_ARG_ENABLE(mtab,
+ [ --disable-mtab Disable and ignore usage of /etc/mtab ])
subdirs2="include"
if test "$enable_example" != "no"; then
subdirs2="$subdirs2 example";
fi
-AC_CHECK_FUNCS([setxattr])
+if test "$enable_mtab" = "no"; then
+ AC_DEFINE(IGNORE_MTAB, 1, [Don't update /etc/mtab])
+fi
+AC_CHECK_FUNCS([fork setxattr])
AC_CHECK_MEMBERS([struct stat.st_atim])
if test -z "$MOUNT_FUSE_PATH"; then
#ifndef USE_UCLIBC
#define mutex_init(mut) pthread_mutex_init(mut, NULL)
#else
-static void mutex_init(pthread_mutex_t mut)
+static void mutex_init(pthread_mutex_t *mut)
{
pthread_mutexattr_t attr;
pthread_mutexattr_init(&attr);
return -1;
}
-#ifndef USE_UCLIBC
+#ifdef HAVE_FORK
pid = fork();
#else
pid = vfork();
return res;
}
-#ifndef USE_UCLIBC
+#ifndef IGNORE_MTAB
/* use a lock file so that multiple fusermount processes don't try and
modify the mtab file at once! */
static int lock_mtab(void)
}
return 0;
}
-#else /* USE_UCLIBC */
+#else /* IGNORE_MTAB */
static int lock_mtab()
{
return 0;
{
return do_unmount(mnt, quiet, lazy);
}
-#endif
+#endif /* IGNORE_MTAB */
static void strip_line(char *line)
{
"%s: [options] mountpoint\n"
"Options:\n"
" -h print help\n"
+ " -v print version\n"
" -o opt[,opt...] mount options\n"
" -u unmount\n"
" -q quiet\n"