otp: prevent implicit function declarations if HAVE_DB_NDBM

include ndbm.h if HAVE_DB_NDBM is defined to avoid implicit function
declarations.
This commit is contained in:
Jeffrey Altman
2024-09-03 12:50:11 -04:00
parent 323d555c82
commit b09f3b3c28

View File

@@ -38,10 +38,13 @@ RCSID("$Id$");
#include "otp_locl.h"
#if !defined(HAVE_NDBM) && !defined(HAVE_DB_NDBM)
#include "ndbm_wrap.h"
#if defined(HAVE_DB_NDBM)
# include <ndbm.h>
#elif !defined(HAVE_NDBM)
# include "ndbm_wrap.h"
#endif
#define RETRIES 5
void *