X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=mts%2Fsendmail%2Fsendmail.c;h=05f8c33f0b2a9ad18d0aa63a4847c4760af23edd;hb=d02ec5835693084c86f676b35dd96f44a22ff534;hp=75565036f2b4ded0f13d6bc38a51fa05ba2cb061;hpb=1691e80890e5d8ba258c51c214a3e91880e1db2b;p=mmh diff --git a/mts/sendmail/sendmail.c b/mts/sendmail/sendmail.c index 7556503..05f8c33 100644 --- a/mts/sendmail/sendmail.c +++ b/mts/sendmail/sendmail.c @@ -9,6 +9,9 @@ #include #include #include +#ifdef MPOP +#include +#endif /* * This module implements an interface to SendMail very similar @@ -74,10 +77,6 @@ static char *sm_moreply = "; "; struct smtp sm_reply; /* global... */ -#ifdef MPOP -extern int errno; -#endif - static int doingEHLO; #define MAXEHLO 20 @@ -113,11 +112,12 @@ sm_init (char *client, char *server, int watch, int verbose, if (sm_rfp != NULL && sm_wfp != NULL) return RP_OK; - if (client == NULL || *client == '\0') + if (client == NULL || *client == '\0') { if (clientname) client = clientname; else client = LocalName(); /* no clientname -> LocalName */ + } #ifdef ZMAILER if (client == NULL || *client == '\0')