]> Pileus Git - ~andy/fetchmail/blobdiff - rfc822.c
Merge branch 'legacy_63'
[~andy/fetchmail] / rfc822.c
index a3ff263ffafe2a7f73d1d7746ad57e03cf8eae84..4efba8349eb6a79c494cae0d95aa54e9b72fb7dc 100644 (file)
--- 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  <stdio.h>
 #include  <ctype.h>
@@ -28,11 +32,10 @@ MIT license.  Compile with -DMAIN to build the demonstrator.
 #include  <strings.h>
 #include  <stdlib.h>
 
-#include "fetchmail.h"
 #include "sdump.h"
 
 #ifndef MAIN
-#include "i18n.h"
+#include "gettext.h"
 #else
 #include  <unistd.h>
 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')