1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-23 00:43:28 +00:00

From KDE_3_1_BRANCH:

Deal with 64-bit time_t

With this fix I was able to complete compilation of kdebase on IA64.

Submitted by:	Adriaan de Groot <adridg@cs.kun.nl>
Thanks to:	marcel for prodding and installing kdelibs on pluto2
This commit is contained in:
Tilman Keskinoz 2003-09-29 09:39:38 +00:00
parent 70976bc004
commit f6ed807045
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=89772
7 changed files with 126 additions and 0 deletions

View File

@ -0,0 +1,18 @@
--- konsole/konsole/TEPty.cpp.orig Mon Sep 29 11:22:07 2003
+++ konsole/konsole/TEPty.cpp Mon Sep 29 11:22:12 2003
@@ -624,7 +624,14 @@
if (strncmp(str_ptr, "/dev/", 5) == 0)
str_ptr += 5;
strncpy(l_struct.ut_line, str_ptr, UT_LINESIZE);
- time(&l_struct.ut_time);
+
+ // Handle 64-bit time_t properly, where it may be larger
+ // than the integral type of ut_time.
+ {
+ time_t ut_time_temp;
+ time(&ut_time_temp);
+ l_struct.ut_time=ut_time_temp;
+ }
login(&l_struct);
#endif

View File

@ -0,0 +1,18 @@
--- konsole/konsole/TEPty.cpp.orig Mon Sep 29 11:22:07 2003
+++ konsole/konsole/TEPty.cpp Mon Sep 29 11:22:12 2003
@@ -624,7 +624,14 @@
if (strncmp(str_ptr, "/dev/", 5) == 0)
str_ptr += 5;
strncpy(l_struct.ut_line, str_ptr, UT_LINESIZE);
- time(&l_struct.ut_time);
+
+ // Handle 64-bit time_t properly, where it may be larger
+ // than the integral type of ut_time.
+ {
+ time_t ut_time_temp;
+ time(&ut_time_temp);
+ l_struct.ut_time=ut_time_temp;
+ }
login(&l_struct);
#endif

View File

@ -0,0 +1,18 @@
--- konsole/konsole/TEPty.cpp.orig Mon Sep 29 11:22:07 2003
+++ konsole/konsole/TEPty.cpp Mon Sep 29 11:22:12 2003
@@ -624,7 +624,14 @@
if (strncmp(str_ptr, "/dev/", 5) == 0)
str_ptr += 5;
strncpy(l_struct.ut_line, str_ptr, UT_LINESIZE);
- time(&l_struct.ut_time);
+
+ // Handle 64-bit time_t properly, where it may be larger
+ // than the integral type of ut_time.
+ {
+ time_t ut_time_temp;
+ time(&ut_time_temp);
+ l_struct.ut_time=ut_time_temp;
+ }
login(&l_struct);
#endif

View File

@ -0,0 +1,18 @@
--- konsole/konsole/TEPty.cpp.orig Mon Sep 29 11:22:07 2003
+++ konsole/konsole/TEPty.cpp Mon Sep 29 11:22:12 2003
@@ -624,7 +624,14 @@
if (strncmp(str_ptr, "/dev/", 5) == 0)
str_ptr += 5;
strncpy(l_struct.ut_line, str_ptr, UT_LINESIZE);
- time(&l_struct.ut_time);
+
+ // Handle 64-bit time_t properly, where it may be larger
+ // than the integral type of ut_time.
+ {
+ time_t ut_time_temp;
+ time(&ut_time_temp);
+ l_struct.ut_time=ut_time_temp;
+ }
login(&l_struct);
#endif

View File

@ -0,0 +1,18 @@
--- konsole/konsole/TEPty.cpp.orig Mon Sep 29 11:22:07 2003
+++ konsole/konsole/TEPty.cpp Mon Sep 29 11:22:12 2003
@@ -624,7 +624,14 @@
if (strncmp(str_ptr, "/dev/", 5) == 0)
str_ptr += 5;
strncpy(l_struct.ut_line, str_ptr, UT_LINESIZE);
- time(&l_struct.ut_time);
+
+ // Handle 64-bit time_t properly, where it may be larger
+ // than the integral type of ut_time.
+ {
+ time_t ut_time_temp;
+ time(&ut_time_temp);
+ l_struct.ut_time=ut_time_temp;
+ }
login(&l_struct);
#endif

View File

@ -0,0 +1,18 @@
--- konsole/konsole/TEPty.cpp.orig Mon Sep 29 11:22:07 2003
+++ konsole/konsole/TEPty.cpp Mon Sep 29 11:22:12 2003
@@ -624,7 +624,14 @@
if (strncmp(str_ptr, "/dev/", 5) == 0)
str_ptr += 5;
strncpy(l_struct.ut_line, str_ptr, UT_LINESIZE);
- time(&l_struct.ut_time);
+
+ // Handle 64-bit time_t properly, where it may be larger
+ // than the integral type of ut_time.
+ {
+ time_t ut_time_temp;
+ time(&ut_time_temp);
+ l_struct.ut_time=ut_time_temp;
+ }
login(&l_struct);
#endif

View File

@ -0,0 +1,18 @@
--- konsole/konsole/TEPty.cpp.orig Mon Sep 29 11:22:07 2003
+++ konsole/konsole/TEPty.cpp Mon Sep 29 11:22:12 2003
@@ -624,7 +624,14 @@
if (strncmp(str_ptr, "/dev/", 5) == 0)
str_ptr += 5;
strncpy(l_struct.ut_line, str_ptr, UT_LINESIZE);
- time(&l_struct.ut_time);
+
+ // Handle 64-bit time_t properly, where it may be larger
+ // than the integral type of ut_time.
+ {
+ time_t ut_time_temp;
+ time(&ut_time_temp);
+ l_struct.ut_time=ut_time_temp;
+ }
login(&l_struct);
#endif