aboutsummaryrefslogtreecommitdiffstats
path: root/lang
diff options
context:
space:
mode:
authorijliao <ijliao@FreeBSD.org>2002-12-01 16:33:20 +0800
committerijliao <ijliao@FreeBSD.org>2002-12-01 16:33:20 +0800
commitfcabb6e70dfd807fbd73c185acd456dce0ca6704 (patch)
tree71a132a81805dfa96f67dcf4945639345a704797 /lang
parentde24afd6299632829b56a9ea4fcde9176f212ad0 (diff)
downloadfreebsd-ports-graphics-fcabb6e70dfd807fbd73c185acd456dce0ca6704.tar.gz
freebsd-ports-graphics-fcabb6e70dfd807fbd73c185acd456dce0ca6704.tar.zst
freebsd-ports-graphics-fcabb6e70dfd807fbd73c185acd456dce0ca6704.zip
fix build on -current
PR: 45836 Submitted by: Stefan Farfeleder <e0026813@stud3.tuwien.ac.at>
Diffstat (limited to 'lang')
-rw-r--r--lang/afnix/files/patch-src::plt::lib::cclk.cxx22
-rw-r--r--lang/aleph/files/patch-src::plt::lib::cclk.cxx22
2 files changed, 44 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 00000000000..e680e317361
--- /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;
diff --git a/lang/aleph/files/patch-src::plt::lib::cclk.cxx b/lang/aleph/files/patch-src::plt::lib::cclk.cxx
new file mode 100644
index 00000000000..e680e317361
--- /dev/null
+++ b/lang/aleph/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;