Commit 4cdb9aa2 4cdb9aa2faad6d2aea85a2747f64099f0141e39c by Sergey Poznyakoff

Added missing includes and prototypes.

1 parent aa67fed8
...@@ -18,6 +18,8 @@ ...@@ -18,6 +18,8 @@
18 #if defined(HAVE_CONFIG_H) 18 #if defined(HAVE_CONFIG_H)
19 # include <config.h> 19 # include <config.h>
20 #endif 20 #endif
21 #include <sys/types.h>
22 #include <sys/stat.h>
21 #include <stdlib.h> 23 #include <stdlib.h>
22 #include <stdio.h> 24 #include <stdio.h>
23 #include <unistd.h> 25 #include <unistd.h>
...@@ -48,3 +50,7 @@ void collect_open_mailbox_file __P ((void)); ...@@ -48,3 +50,7 @@ void collect_open_mailbox_file __P ((void));
48 int collect_append_file __P ((char *name)); 50 int collect_append_file __P ((char *name));
49 void collect_create_mailbox __P ((void)); 51 void collect_create_mailbox __P ((void));
50 void collect_drop_mailbox __P ((void)); 52 void collect_drop_mailbox __P ((void));
53 int collect_output (void);
54
55 void util_error (char *fmt, ...);
56 int util_tempfile (char **namep);
......
...@@ -63,10 +63,13 @@ typedef datum DBM_DATUM; ...@@ -63,10 +63,13 @@ typedef datum DBM_DATUM;
63 #endif 63 #endif
64 64
65 #ifdef USE_DBM 65 #ifdef USE_DBM
66 struct stat;
67 int mu_dbm_stat (char *name, struct stat *sb);
66 int mu_dbm_open __P((char *name, DBM_FILE *db, int flags, int mode)); 68 int mu_dbm_open __P((char *name, DBM_FILE *db, int flags, int mode));
67 int mu_dbm_close __P((DBM_FILE db)); 69 int mu_dbm_close __P((DBM_FILE db));
68 int mu_dbm_fetch __P((DBM_FILE db, DBM_DATUM key, DBM_DATUM *ret)); 70 int mu_dbm_fetch __P((DBM_FILE db, DBM_DATUM key, DBM_DATUM *ret));
69 int mu_dbm_insert __P((DBM_FILE db, DBM_DATUM key, DBM_DATUM contents, int replace)); 71 int mu_dbm_insert __P((DBM_FILE db, DBM_DATUM key, DBM_DATUM contents, int replace));
72 int mu_dbm_delete (DBM_FILE db, DBM_DATUM key);
70 DBM_DATUM mu_dbm_firstkey __P((DBM_FILE db)); 73 DBM_DATUM mu_dbm_firstkey __P((DBM_FILE db));
71 DBM_DATUM mu_dbm_nextkey __P((DBM_FILE db, DBM_DATUM key)); 74 DBM_DATUM mu_dbm_nextkey __P((DBM_FILE db, DBM_DATUM key));
72 #endif 75 #endif
......
...@@ -18,6 +18,8 @@ ...@@ -18,6 +18,8 @@
18 #ifdef HAVE_CONFIG_H 18 #ifdef HAVE_CONFIG_H
19 # include <config.h> 19 # include <config.h>
20 #endif 20 #endif
21 #include <stdlib.h>
22 #include <unistd.h>
21 #include <argp.h> 23 #include <argp.h>
22 #include <mh_getopt.h> 24 #include <mh_getopt.h>
23 25
......
...@@ -22,8 +22,9 @@ ...@@ -22,8 +22,9 @@
22 # include <config.h> 22 # include <config.h>
23 #endif 23 #endif
24 24
25 #include <mh_getopt.h> 25 #include <mh.h>
26 #include <string.h> 26 #include <string.h>
27 #include <argcv.h>
27 28
28 struct mh_argp_data 29 struct mh_argp_data
29 { 30 {
......