diff --git a/x11/kde4-baseapps/files/patch-konsole-konsole-TEPty.cpp b/x11/kde4-baseapps/files/patch-konsole-konsole-TEPty.cpp new file mode 100644 index 000000000000..949bc5bc36ce --- /dev/null +++ b/x11/kde4-baseapps/files/patch-konsole-konsole-TEPty.cpp @@ -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 diff --git a/x11/kde4-runtime/files/patch-konsole-konsole-TEPty.cpp b/x11/kde4-runtime/files/patch-konsole-konsole-TEPty.cpp new file mode 100644 index 000000000000..949bc5bc36ce --- /dev/null +++ b/x11/kde4-runtime/files/patch-konsole-konsole-TEPty.cpp @@ -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 diff --git a/x11/kde4-workspace/files/patch-konsole-konsole-TEPty.cpp b/x11/kde4-workspace/files/patch-konsole-konsole-TEPty.cpp new file mode 100644 index 000000000000..949bc5bc36ce --- /dev/null +++ b/x11/kde4-workspace/files/patch-konsole-konsole-TEPty.cpp @@ -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 diff --git a/x11/kdebase3/files/patch-konsole-konsole-TEPty.cpp b/x11/kdebase3/files/patch-konsole-konsole-TEPty.cpp new file mode 100644 index 000000000000..949bc5bc36ce --- /dev/null +++ b/x11/kdebase3/files/patch-konsole-konsole-TEPty.cpp @@ -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 diff --git a/x11/kdebase4-runtime/files/patch-konsole-konsole-TEPty.cpp b/x11/kdebase4-runtime/files/patch-konsole-konsole-TEPty.cpp new file mode 100644 index 000000000000..949bc5bc36ce --- /dev/null +++ b/x11/kdebase4-runtime/files/patch-konsole-konsole-TEPty.cpp @@ -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 diff --git a/x11/kdebase4-workspace/files/patch-konsole-konsole-TEPty.cpp b/x11/kdebase4-workspace/files/patch-konsole-konsole-TEPty.cpp new file mode 100644 index 000000000000..949bc5bc36ce --- /dev/null +++ b/x11/kdebase4-workspace/files/patch-konsole-konsole-TEPty.cpp @@ -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 diff --git a/x11/kdebase4/files/patch-konsole-konsole-TEPty.cpp b/x11/kdebase4/files/patch-konsole-konsole-TEPty.cpp new file mode 100644 index 000000000000..949bc5bc36ce --- /dev/null +++ b/x11/kdebase4/files/patch-konsole-konsole-TEPty.cpp @@ -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