summaryrefslogtreecommitdiff
path: root/sysutils/screen50/files/patch-utmp.c
diff options
context:
space:
mode:
authorCy Schubert <cy@FreeBSD.org>2024-08-28 20:20:28 -0700
committerCy Schubert <cy@FreeBSD.org>2024-08-28 20:35:50 -0700
commitd2221ef5ffcf08c73198dd92866c4aa3e2864e70 (patch)
treeeaa5353d0eb201f38499307493a45e77ffbb7081 /sysutils/screen50/files/patch-utmp.c
parentsysutils/screen*: Rename screen and introduce a meta port (diff)
sysutils/screen50: Introduce the new screen 5.0.0
Screen 5.0.0 is the next major release of GNU Screen. Unfortunatly while testing sysutils/screen-devel I discovered bugs with its hardstatus implementation. Existing hardstatus failed to work correctly. I had opened a bug with the GNU Screen upstream. They had fixed one of the bugs however the last time I tested screen-devel, some status strings were still unavailable, not to mention that the hardstatus string syntax has changed. Therefore I don't believe screen50 should replace screen49 as our default GNU screen until a) some of the issues are resolved and b) we the FreeBSD community have had a little more experience with it. People who wish to use screen50 will need to uninstall screen (currently a meta port pointing to screen49) and install screen50. Any bugzilla bugs will likely spawn an upstream bug report by myself.
Diffstat (limited to 'sysutils/screen50/files/patch-utmp.c')
-rw-r--r--sysutils/screen50/files/patch-utmp.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/sysutils/screen50/files/patch-utmp.c b/sysutils/screen50/files/patch-utmp.c
new file mode 100644
index 000000000000..3157dffa0a90
--- /dev/null
+++ b/sysutils/screen50/files/patch-utmp.c
@@ -0,0 +1,20 @@
+--- utmp.c.orig 2024-03-26 16:41:57.000000000 -0700
++++ utmp.c 2024-04-03 11:21:49.696125000 -0700
+@@ -30,6 +30,7 @@
+
+ #include "utmp.h"
+
++#include <sys/param.h>
+ #include <sys/types.h>
+ #include <sys/stat.h>
+ #include <fcntl.h>
+@@ -64,9 +65,7 @@
+
+ static int utmpok;
+ static char UtmpName[] = UTMPXFILE;
+-#ifndef UTMP_HELPER
+ static int utmpfd = -1;
+-#endif
+
+ #undef D_loginhost
+ #define D_loginhost D_utmp_logintty.ut_host