freebsd 4 port

This commit is contained in:
dockes
2005-12-07 15:41:50 +00:00
parent 97987cf0d8
commit ae6ce2638a
6 changed files with 12 additions and 8 deletions
+2 -1
View File
@@ -10,6 +10,7 @@
** destructor.
*****************************************************************************/
#include <unistd.h>
#include <time.h>
#include <list>
#include <utility>
@@ -267,7 +268,7 @@ void Preview::setCurTabProps(const string &fn, const Rcl::Doc &doc)
time_t mtime = doc.dmtime.empty() ?
atol(doc.fmtime.c_str()) : atol(doc.dmtime.c_str());
struct tm *tm = localtime(&mtime);
strftime(datebuf, 99, "%F %T", tm);
strftime(datebuf, 99, "%Y-%m-%d %H:%M:%S", tm);
}
string tiptxt = doc.url + string("\n");
tiptxt += doc.mimetype + " " + string(datebuf) + "\n";
+3 -2
View File
@@ -10,11 +10,12 @@
** destructor.
*****************************************************************************/
#include <regex.h>
#include <stdlib.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <fcntl.h>
#include <sys/stat.h>
#include <regex.h>
#include <utility>
#ifndef NO_NAMESPACES