X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=rfc822.c;h=4efba8349eb6a79c494cae0d95aa54e9b72fb7dc;hb=40fe452223b5cc0ff5dbae0efa8551d7e96c1a5c;hp=a3ff263ffafe2a7f73d1d7746ad57e03cf8eae84;hpb=82d02e1f39249cce1362c0a41c4fe2a7005ae835;p=~andy%2Ffetchmail diff --git a/rfc822.c b/rfc822.c index a3ff263f..4efba834 100644 --- a/rfc822.c +++ b/rfc822.c @@ -20,7 +20,11 @@ MIT license. Compile with -DMAIN to build the demonstrator. ******************************************************************************/ +#define _XOPEN_SOURCE 600 +#define __BSD_VISIBLE 1 + #include "config.h" +#include "fetchmail.h" #include #include @@ -28,11 +32,10 @@ MIT license. Compile with -DMAIN to build the demonstrator. #include #include -#include "fetchmail.h" #include "sdump.h" #ifndef MAIN -#include "i18n.h" +#include "gettext.h" #else #include static int verbose; @@ -439,6 +442,8 @@ int main(int argc, char *argv[]) break; } + longbuf[0] = '\0'; + while (fgets(buf, sizeof(buf)-1, stdin)) { if (buf[0] == ' ' || buf[0] == '\t')