tags 474831 + patch thanks Patch attached.
Credit is shared between Bradley Smith <[EMAIL PROTECTED]> and myself.
Regards,
--
Chris Lamb, UK [EMAIL PROTECTED]
GPG: 0x634F9A20
diff -urNad postal-0.67.orig/basictcp.h postal-0.67/basictcp.h
--- postal-0.67.orig/basictcp.h 2008-04-10 00:02:25.000000000 +0100
+++ postal-0.67/basictcp.h 2008-04-10 00:05:55.000000000 +0100
@@ -5,6 +5,7 @@
#include "postal.h"
#include <sys/poll.h>
#include <string>
+#include <cstring>
#include <sys/types.h>
#include <netinet/in.h>
diff -urNad postal-0.67.orig/bhmusers.cpp postal-0.67/bhmusers.cpp
--- postal-0.67.orig/bhmusers.cpp 2008-04-10 00:02:25.000000000 +0100
+++ postal-0.67/bhmusers.cpp 2008-04-10 01:54:40.000000000 +0100
@@ -1,5 +1,6 @@
#include "bhmusers.h"
#include <stdio.h>
+#include <cstring>
#include "expand.h"
BHMUsers::BHMUsers(const char *userListFile)
diff -urNad postal-0.67.orig/client.cpp postal-0.67/client.cpp
--- postal-0.67.orig/client.cpp 2008-04-10 00:02:25.000000000 +0100
+++ postal-0.67/client.cpp 2008-04-10 00:05:30.000000000 +0100
@@ -1,5 +1,6 @@
#include "client.h"
#include <cstdlib>
+#include <cstring>
#include <unistd.h>
#include "userlist.h"
#include "logit.h"
diff -urNad postal-0.67.orig/logit.cpp postal-0.67/logit.cpp
--- postal-0.67.orig/logit.cpp 2008-04-10 00:02:25.000000000 +0100
+++ postal-0.67/logit.cpp 2008-04-10 00:04:57.000000000 +0100
@@ -1,5 +1,6 @@
#include "logit.h"
#include <limits.h>
+#include <cstring>
Logit::Logit(const char *filename, bool is_verbose, bool numbered_files, int
pid)
: m_verbose(is_verbose)
diff -urNad postal-0.67.orig/port.h postal-0.67/port.h
--- postal-0.67.orig/port.h 2008-04-10 00:02:25.000000000 +0100
+++ postal-0.67/port.h 2008-04-10 00:03:26.000000000 +0100
@@ -99,8 +99,6 @@
#define file_close close
#define make_directory(XX) mkdir(XX, S_IRWXU)
typedef int FILE_TYPE;
-#define __min min
-#define __max max
typedef unsigned int UINT;
typedef unsigned long ULONG;
typedef const char * PCCHAR;
diff -urNad postal-0.67.orig/port.h.in postal-0.67/port.h.in
--- postal-0.67.orig/port.h.in 2008-04-10 00:02:25.000000000 +0100
+++ postal-0.67/port.h.in 2008-04-10 00:03:17.000000000 +0100
@@ -99,8 +99,6 @@
#define file_close close
#define make_directory(XX) mkdir(XX, S_IRWXU)
typedef int FILE_TYPE;
-#define __min min
-#define __max max
typedef unsigned int UINT;
typedef unsigned long ULONG;
typedef const char * PCCHAR;
diff -urNad postal-0.67.orig/postal-list.cpp postal-0.67/postal-list.cpp
--- postal-0.67.orig/postal-list.cpp 2008-04-10 00:02:25.000000000 +0100
+++ postal-0.67/postal-list.cpp 2008-04-10 00:02:47.000000000 +0100
@@ -1,6 +1,7 @@
#include "expand.h"
#include <cstdlib>
#include <string>
+#include <cstring>
#include <stdio.h>
diff -urNad postal-0.67.orig/smtp.cpp postal-0.67/smtp.cpp
--- postal-0.67.orig/smtp.cpp 2008-04-10 00:02:25.000000000 +0100
+++ postal-0.67/smtp.cpp 2008-04-10 00:05:07.000000000 +0100
@@ -8,6 +8,7 @@
#include "userlist.h"
#include "logit.h"
#include "results.h"
+#include <cstring>
smtpData::smtpData()
: m_quit("QUIT\r\n")
diff -urNad postal-0.67.orig/tcp.cpp postal-0.67/tcp.cpp
--- postal-0.67.orig/tcp.cpp 2008-04-10 00:02:25.000000000 +0100
+++ postal-0.67/tcp.cpp 2008-04-10 00:02:47.000000000 +0100
@@ -7,6 +7,7 @@
#include <arpa/inet.h>
#include <fcntl.h>
#include <errno.h>
+#include <cstring>
#include "postal.h"
#include "userlist.h"
#include "address.h"
diff -urNad postal-0.67.orig/userlist.cpp postal-0.67/userlist.cpp
--- postal-0.67.orig/userlist.cpp 2008-04-10 00:02:25.000000000 +0100
+++ postal-0.67/userlist.cpp 2008-04-10 00:02:47.000000000 +0100
@@ -1,5 +1,6 @@
#include "userlist.h"
#include <cstdlib>
+#include <cstring>
#include <stdio.h>
#include "expand.h"
signature.asc
Description: PGP signature

