AC_DEFINE(USE_FCNTL,1, [ Define to use fcntl() to lock folders. ])
fi
-AC_MSG_CHECKING(whether struct dirent defines d_ino)
-ac_cv_dirent_d_ino=no
-AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <dirent.h>]], [[struct dirent dp; (void)dp.d_ino]])],[ac_cv_dirent_d_ino=yes],[])
-if test x$ac_cv_dirent_d_ino = xyes; then
- AC_DEFINE(HAVE_DIRENT_D_INO,1,
- [Define to 1 if your system has the dirent::d_ino member])
-fi
-AC_MSG_RESULT($ac_cv_dirent_d_ino)
-
mutt_cv_warnings=yes
AC_ARG_ENABLE(warnings, AS_HELP_STRING([--disable-warnings],[Turn off compiler warnings (not recommended)]),
[if test $enableval = no; then
HEADER *h;
char *canon_fname;
unsigned header_parsed : 1;
-#ifdef HAVE_DIRENT_D_INO
ino_t inode;
-#endif /* HAVE_DIRENT_D_INO */
struct maildir *next;
};
entry = safe_calloc(sizeof(struct maildir), 1);
entry->h = h;
-#ifdef HAVE_DIRENT_D_INO
entry->inode = de->d_ino;
-#endif /* HAVE_DIRENT_D_INO */
**last = entry;
*last = &entry->next;
}
}
#endif
-#ifdef HAVE_DIRENT_D_INO
static int md_cmp_inode(struct maildir *a, struct maildir *b)
{
return a->inode - b->inode;
}
-#endif
static int md_cmp_path(struct maildir *a, struct maildir *b)
{
*md = maildir_sort(*md, (size_t) -1, md_cmp_path);
}
-#ifdef HAVE_DIRENT_D_INO
static struct maildir *skip_duplicates(struct maildir *p, struct maildir **last)
{
/*
}
return p;
}
-#endif
/*
* This function does the second parsing pass
struct maildir *p, *last = NULL;
char fn[_POSIX_PATH_MAX];
int count;
-#ifdef HAVE_DIRENT_D_INO
int sort = 0;
-#endif
#ifdef USE_HCACHE
header_cache_t *hc = NULL;
void *data = NULL;
int ret;
#endif
-#ifdef HAVE_DIRENT_D_INO
#define DO_SORT() \
do \
{ \
snprintf(fn, sizeof(fn), "%s/%s", ctx->path, p->h->path); \
} \
} while (0)
-#else
-#define DO_SORT() /* nothing */
-#endif
#ifdef USE_HCACHE
hc = mutt_hcache_open(HeaderCache, ctx->path, NULL);