0f63da2721
Submitted by: bento Reviewed by: peter, will, IRC bsdmike <47d71ad6e4@HSE-London-ppp207327.sympatico.ca>, IRC cmc <chris@adsl-208-191-149-190.dsl.hstntx.swbell.net>, IRC jake_ <jake@k6.locore.ca>
35 lines
842 B
Plaintext
35 lines
842 B
Plaintext
--- programs/arrow/code/SMTPMessage.cc.orig Fri Sep 24 15:22:05 1999
|
|
+++ programs/arrow/code/SMTPMessage.cc Wed Aug 1 01:17:26 2001
|
|
@@ -42,7 +42,7 @@
|
|
#include <ace/LSOCK_Connector.h>
|
|
#include <ace/LSOCK_Stream.h>
|
|
|
|
-#include <sys/timeb.h>
|
|
+#include <sys/time.h>
|
|
#include <sys/utsname.h>
|
|
#include <fstream.h>
|
|
#include <strstream.h>
|
|
@@ -395,9 +395,22 @@
|
|
itsFrom->Print(*itsOutboxStream);
|
|
*itsOutboxStream << " ";
|
|
|
|
+/* This is obsolete on FreeBSD
|
|
+ Try the replacemente below
|
|
struct timeb tp;
|
|
ftime(&tp);
|
|
JString date(ctime(&(tp.time)));
|
|
+*/
|
|
+
|
|
+/* BEGIN of ftime replacement */
|
|
+ struct timeval t;
|
|
+ struct timezone tz;
|
|
+
|
|
+ gettimeofday(&t, &tz);
|
|
+ JString date(ctime((const time_t *) &(t.tv_sec)));
|
|
+
|
|
+/* END of ftime replacement */
|
|
+
|
|
date.Print(*itsOutboxStream);
|
|
|
|
jistrstream(is, date.GetCString(), date.GetLength());
|