head 1.1; access; symbols pkgsrc-2026Q1:1.1.0.10 pkgsrc-2026Q1-base:1.1 pkgsrc-2025Q4:1.1.0.8 pkgsrc-2025Q4-base:1.1 pkgsrc-2025Q3:1.1.0.6 pkgsrc-2025Q3-base:1.1 pkgsrc-2025Q2:1.1.0.4 pkgsrc-2025Q2-base:1.1 pkgsrc-2025Q1:1.1.0.2 pkgsrc-2025Q1-base:1.1; locks; strict; comment @# @; 1.1 date 2025.02.07.03.15.06; author ryoon; state Exp; branches; next ; commitid AmF1up5wywoP9uIF; desc @@ 1.1 log @misc/screen4: import screen-4.9.1 Screen is a full-screen window manager that multiplexes a physical terminal between several processes (typically interactive shells). Each virtual terminal provides the functions of a DEC VT100 terminal and, in addition, several control functions from the ANSI X3.64 (ISO 6429) and ISO 2022 standards (e.g. insert/delete line and support for multiple character sets). There is a scrollback history buffer for each virtual terminal and a copy-and-paste mechanism that allows moving text regions between windows. misc/screen-5.0.0 does not work under xterm. Reversed strings are not displayed properly at least. Import working GNU screen 4 as misc/screen4. And screen-5.0.0 does not have codes for older platforms. @ text @$NetBSD: patch-ai,v 1.8 2017/07/18 23:02:18 kim Exp $ This glues in the code from patch-am (see also patch-al and patch-an). --- os.h.orig 2016-06-19 19:41:03.000000000 +0000 +++ os.h @@@@ -71,9 +71,6 @@@@ # undef exit #endif /* sun */ -#ifndef linux /* all done in */ -extern int errno; -#endif /* linux */ #ifndef HAVE_STRERROR /* No macros, please */ #undef strerror @@@@ -250,9 +247,15 @@@@ extern int errno; #endif #if defined(UTMPOK) || defined(BUGGYGETLOGIN) -# if defined(SVR4) && !defined(DGUX) && !defined(__hpux) && !defined(linux) +# if defined(SVR4) && !defined(DGUX) && !defined(__hpux) && !defined(linux) \ + || (defined(__NetBSD_Version__) && (__NetBSD_Version__ >= 106050000)) \ + || (defined(__DragonFly__) && (__DragonFly_version >= 200902)) # include +#if defined(UTMPX_FILE) /* GNU extension */ # define UTMPFILE UTMPX_FILE +#elif defined(_PATH_UTMPX) +# define UTMPFILE _PATH_UTMPX +#endif # define utmp utmpx # define getutent getutxent # define getutid getutxid @@@@ -261,6 +264,9 @@@@ extern int errno; # define setutent setutxent # define endutent endutxent # define ut_time ut_xtime +# if defined(__NetBSD__) +# define NetBSD_UTMP +# endif # else /* SVR4 */ # include # endif /* SVR4 */ @