From c72478ce90d83e355ad7782991d20cbbd2664fd3 Mon Sep 17 00:00:00 2001 From: "Suren A. Chilingaryan" Date: Wed, 9 May 2007 14:37:44 +0000 Subject: FreeBSD fixes - Autoconf: try to locate libraries in /usr/local - Autoconf: Help FreeBSD to locate BerkeleyDB - Autoconf: Search for dlopen in libc library - Autoconf: Support of --disable-bdb option is added to configure script - Fixed compilation with missing dlopen functionality - Suppress various warnings --- src/fs.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/fs.c') diff --git a/src/fs.c b/src/fs.c index f8f6094..675e061 100644 --- a/src/fs.c +++ b/src/fs.c @@ -80,11 +80,14 @@ static char *rccCheckFile(const char *prefix, const char *name) { /* Converts: 'filename' to 'prefix/name' using 'fspath' */ int rccFS0(rcc_language_config config, const char *fspath, const char *filename, char **prefix, char **name) { +#ifdef HAVE_MNTENT_H FILE *mtab; struct mntent *fsentry; + char *lastprefix; +#endif /* HAVE_MNTENT_H */ + const char *tmp = NULL; size_t len; - char *lastprefix; if (fspath) { len = strlen(fspath); -- cgit v1.2.3