main/screen: fix build with gcc 14

also, regenerate patch
This commit is contained in:
Celeste 2024-08-06 02:04:47 +00:00
parent 25f2369dd0
commit 59ed117f5a
2 changed files with 19 additions and 4 deletions

View File

@ -66,5 +66,5 @@ package() {
sha512sums="
1f278313528815f4246bb162ced611c5d77321d11055e8d853168dc804c75d5f78568056a23e46db0640e1605e5cad4a5ce05e95e50cf02bb322cb6f57e5a126 screen-4.9.1.tar.gz
82aca3e16c8cd7a3029d3b589ff2dd3471708d6287979ebb5cfdaedbd1f3012c0cd660b131e0cbe142b99786e49ef8b24c63159523d870e95ccf71ec94b82634 utmpx.patch
0cfdee33ca025a308f5512e82106b0ef8a84c7c4ad4c7330f02a414d882163dca88fb98b7cb17f26e219a2720a327e72091f2694619c8ab5562c6a6eca776d98 utmpx.patch
"

View File

@ -1,6 +1,8 @@
--- screen-4.6.2/os.h.old 2018-09-27 23:11:11.655480028 -0700
+++ screen-4.6.2/os.h 2018-09-27 23:11:34.745808665 -0700
@@ -250,17 +250,13 @@
diff --git a/os.h b/os.h
index 2a1c2ca6f..53bf09e50 100644
--- a/os.h
+++ b/os.h
@@ -250,17 +250,13 @@ extern int errno;
#endif
#if defined(UTMPOK) || defined(BUGGYGETLOGIN)
@ -19,3 +21,16 @@
# else /* SVR4 */
# include <utmp.h>
# endif /* SVR4 */
diff --git a/utmp.c b/utmp.c
index 1fb360368..abf4e6d04 100644
--- a/utmp.c
+++ b/utmp.c
@@ -891,7 +891,7 @@ xpututline(u)
struct utmp *u;
{
struct utmp *u2;
- pututline(u);
+ pututxline(u);
setutent();
u2 = getutline(u);
if (u2 == 0)