Commit 4cdb9aa2 4cdb9aa2faad6d2aea85a2747f64099f0141e39c by Sergey Poznyakoff

Added missing includes and prototypes.

1 parent aa67fed8
......@@ -18,6 +18,8 @@
#if defined(HAVE_CONFIG_H)
# include <config.h>
#endif
#include <sys/types.h>
#include <sys/stat.h>
#include <stdlib.h>
#include <stdio.h>
#include <unistd.h>
......@@ -48,3 +50,7 @@ void collect_open_mailbox_file __P ((void));
int collect_append_file __P ((char *name));
void collect_create_mailbox __P ((void));
void collect_drop_mailbox __P ((void));
int collect_output (void);
void util_error (char *fmt, ...);
int util_tempfile (char **namep);
......
......@@ -63,10 +63,13 @@ typedef datum DBM_DATUM;
#endif
#ifdef USE_DBM
struct stat;
int mu_dbm_stat (char *name, struct stat *sb);
int mu_dbm_open __P((char *name, DBM_FILE *db, int flags, int mode));
int mu_dbm_close __P((DBM_FILE db));
int mu_dbm_fetch __P((DBM_FILE db, DBM_DATUM key, DBM_DATUM *ret));
int mu_dbm_insert __P((DBM_FILE db, DBM_DATUM key, DBM_DATUM contents, int replace));
int mu_dbm_delete (DBM_FILE db, DBM_DATUM key);
DBM_DATUM mu_dbm_firstkey __P((DBM_FILE db));
DBM_DATUM mu_dbm_nextkey __P((DBM_FILE db, DBM_DATUM key));
#endif
......
......@@ -18,6 +18,8 @@
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
#include <stdlib.h>
#include <unistd.h>
#include <argp.h>
#include <mh_getopt.h>
......
......@@ -22,8 +22,9 @@
# include <config.h>
#endif
#include <mh_getopt.h>
#include <mh.h>
#include <string.h>
#include <argcv.h>
struct mh_argp_data
{
......