aboutsummaryrefslogtreecommitdiff
path: root/lang/afnix
diff options
context:
space:
mode:
authorYing-Chieh Liao <ijliao@FreeBSD.org>2002-12-01 08:33:20 +0000
committerYing-Chieh Liao <ijliao@FreeBSD.org>2002-12-01 08:33:20 +0000
commit9f0bc0e9988a2e029248adf6055e42333e0b4917 (patch)
treee0fecc81de50331dd96081e47f166387f68499bb /lang/afnix
parentac1fb053db1cc41dc83a9c4cd8fea9a6c04f0fc2 (diff)
downloadports-9f0bc0e9988a2e029248adf6055e42333e0b4917.tar.gz
ports-9f0bc0e9988a2e029248adf6055e42333e0b4917.zip
Notes
Diffstat (limited to 'lang/afnix')
-rw-r--r--lang/afnix/files/patch-src::plt::lib::cclk.cxx22
1 files changed, 22 insertions, 0 deletions
diff --git a/lang/afnix/files/patch-src::plt::lib::cclk.cxx b/lang/afnix/files/patch-src::plt::lib::cclk.cxx
new file mode 100644
index 000000000000..e680e3173619
--- /dev/null
+++ b/lang/afnix/files/patch-src::plt::lib::cclk.cxx
@@ -0,0 +1,22 @@
+--- src/plt/lib/cclk.cxx.orig Fri Nov 29 13:10:11 2002
++++ src/plt/lib/cclk.cxx Fri Nov 29 13:15:05 2002
+@@ -53,7 +53,8 @@
+ s_tinfo* c_getlocal (const long tclk) {
+ // extract time info
+ struct tm* tval;
+- if ((tval = localtime (&tclk)) == NULL) return 0;
++ time_t t = tclk;
++ if (t != tclk || (tval = localtime (&t)) == NULL) return 0;
+ // fill in the data structure
+ s_tinfo* tinfo = new s_tinfo;
+ tinfo->d_secs = tval->tm_sec;
+@@ -72,7 +73,8 @@
+ s_tinfo* c_getutc (const long tclk) {
+ // extract time info
+ struct tm* tval;
+- if ((tval = gmtime (&tclk)) == NULL) return 0;
++ time_t t = tclk;
++ if (t != tclk || (tval = gmtime (&t)) == NULL) return 0;
+ // fill in the data structure
+ s_tinfo* tinfo = new s_tinfo;
+ tinfo->d_secs = tval->tm_sec;