summaryrefslogtreecommitdiffstats
path: root/src/fs.c
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@dside.dyndns.org>2007-05-09 14:37:44 +0000
committerSuren A. Chilingaryan <csa@dside.dyndns.org>2007-05-09 14:37:44 +0000
commitc72478ce90d83e355ad7782991d20cbbd2664fd3 (patch)
treeda172589b72c9d2c5b1d2311d50b7a60d55585b5 /src/fs.c
parent8ca43646a6c87d00d5b2cb74cebf65a8d0ea5e8e (diff)
downloadlibrcc-c72478ce90d83e355ad7782991d20cbbd2664fd3.tar.gz
librcc-c72478ce90d83e355ad7782991d20cbbd2664fd3.tar.bz2
librcc-c72478ce90d83e355ad7782991d20cbbd2664fd3.tar.xz
librcc-c72478ce90d83e355ad7782991d20cbbd2664fd3.zip
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
Diffstat (limited to 'src/fs.c')
-rw-r--r--src/fs.c5
1 files changed, 4 insertions, 1 deletions
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);