Commit 88524de8 88524de8fe5ebf28f21ec59ad7739a5bc15186e9 by Sergey Poznyakoff

Added network-related includes.

1 parent be1fcf2a
...@@ -29,12 +29,20 @@ ...@@ -29,12 +29,20 @@
29 #include <stdarg.h> 29 #include <stdarg.h>
30 #include <sys/stat.h> 30 #include <sys/stat.h>
31 #include <sysexits.h> 31 #include <sysexits.h>
32 #include <sys/socket.h>
33 #include <netinet/in.h>
34 #include <arpa/inet.h>
35 #include <netdb.h>
32 #include "getopt.h" 36 #include "getopt.h"
33 37
34 #ifdef HAVE_STRINGS_H 38 #ifdef HAVE_STRINGS_H
35 # include <strings.h> 39 # include <strings.h>
36 #endif 40 #endif
37 41
42 #ifndef INADDR_LOOPBACK
43 # define INADDR_LOOPBAK 0x7f000001
44 #endif
45
38 #include <mailutils/mailbox.h> 46 #include <mailutils/mailbox.h>
39 #include <mailutils/message.h> 47 #include <mailutils/message.h>
40 #include <mailutils/error.h> 48 #include <mailutils/error.h>
...@@ -52,15 +60,6 @@ extern int debug_level; ...@@ -52,15 +60,6 @@ extern int debug_level;
52 #define MQUOTA_EXCEEDED 1 60 #define MQUOTA_EXCEEDED 1
53 #define MQUOTA_UNLIMITED 2 61 #define MQUOTA_UNLIMITED 2
54 62
55 struct mda_data
56 {
57 FILE *fp;
58 char *progfile;
59 char *progfile_pattern;
60 char **argv;
61 char *tempfile;
62 };
63
64 extern char *quotadbname; 63 extern char *quotadbname;
65 extern int exit_code; 64 extern int exit_code;
66 65
...@@ -71,6 +70,17 @@ int mda (FILE *fp, char *username, mailbox_t mbox); ...@@ -71,6 +70,17 @@ int mda (FILE *fp, char *username, mailbox_t mbox);
71 char *make_progfile_name (char *pattern, char *username); 70 char *make_progfile_name (char *pattern, char *username);
72 71
73 #ifdef WITH_GUILE 72 #ifdef WITH_GUILE
73 struct mda_data
74 {
75 FILE *fp;
76 char *progfile;
77 char *progfile_pattern;
78 char **argv;
79 char *tempfile;
80 };
81
74 int prog_mda (struct mda_data *data); 82 int prog_mda (struct mda_data *data);
83
84 extern int debug_guile;
75 #endif 85 #endif
76 86
......