it works better with #ifdef USE_DB than #if USE_DB
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7410 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -77,7 +77,7 @@ static int gottoprec; /* Flag indicating retrieval of toprecord */
|
|||||||
#define USE_DB
|
#define USE_DB
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if USE_DB
|
#ifdef USE_DB
|
||||||
static int cdbget (DB *, char **, const char *);
|
static int cdbget (DB *, char **, const char *);
|
||||||
#endif
|
#endif
|
||||||
static int getent (char **, size_t *, char **, int, const char *, int, char *);
|
static int getent (char **, size_t *, char **, int, const char *, int, char *);
|
||||||
@@ -284,7 +284,7 @@ getent(char **cap, size_t *len, char **db_array, int fd,
|
|||||||
if (fd >= 0) {
|
if (fd >= 0) {
|
||||||
(void)lseek(fd, (off_t)0, SEEK_SET);
|
(void)lseek(fd, (off_t)0, SEEK_SET);
|
||||||
} else {
|
} else {
|
||||||
#if USE_DB
|
#ifdef USE_DB
|
||||||
char pbuf[_POSIX_PATH_MAX];
|
char pbuf[_POSIX_PATH_MAX];
|
||||||
char *cbuf;
|
char *cbuf;
|
||||||
size_t clen;
|
size_t clen;
|
||||||
@@ -611,7 +611,7 @@ getent(char **cap, size_t *len, char **db_array, int fd,
|
|||||||
return (0);
|
return (0);
|
||||||
}
|
}
|
||||||
|
|
||||||
#if USE_DB
|
#ifdef USE_DB
|
||||||
static int
|
static int
|
||||||
cdbget(DB *capdbp, char **bp, const char *name)
|
cdbget(DB *capdbp, char **bp, const char *name)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user