Commit 88524de8 88524de8fe5ebf28f21ec59ad7739a5bc15186e9 by Sergey Poznyakoff

Added network-related includes.

1 parent be1fcf2a
......@@ -29,12 +29,20 @@
#include <stdarg.h>
#include <sys/stat.h>
#include <sysexits.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <netdb.h>
#include "getopt.h"
#ifdef HAVE_STRINGS_H
# include <strings.h>
#endif
#ifndef INADDR_LOOPBACK
# define INADDR_LOOPBAK 0x7f000001
#endif
#include <mailutils/mailbox.h>
#include <mailutils/message.h>
#include <mailutils/error.h>
......@@ -52,15 +60,6 @@ extern int debug_level;
#define MQUOTA_EXCEEDED 1
#define MQUOTA_UNLIMITED 2
struct mda_data
{
FILE *fp;
char *progfile;
char *progfile_pattern;
char **argv;
char *tempfile;
};
extern char *quotadbname;
extern int exit_code;
......@@ -71,6 +70,17 @@ int mda (FILE *fp, char *username, mailbox_t mbox);
char *make_progfile_name (char *pattern, char *username);
#ifdef WITH_GUILE
struct mda_data
{
FILE *fp;
char *progfile;
char *progfile_pattern;
char **argv;
char *tempfile;
};
int prog_mda (struct mda_data *data);
extern int debug_guile;
#endif
......