diff options
author | Suren A. Chilingaryan <csa@dside.dyndns.org> | 2007-05-09 14:37:44 +0000 |
---|---|---|
committer | Suren A. Chilingaryan <csa@dside.dyndns.org> | 2007-05-09 14:37:44 +0000 |
commit | c72478ce90d83e355ad7782991d20cbbd2664fd3 (patch) | |
tree | da172589b72c9d2c5b1d2311d50b7a60d55585b5 /src/fs.c | |
parent | 8ca43646a6c87d00d5b2cb74cebf65a8d0ea5e8e (diff) | |
download | librcc-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.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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); |