summaryrefslogtreecommitdiff
path: root/misc/screen/patches/patch-ai
diff options
context:
space:
mode:
Diffstat (limited to 'misc/screen/patches/patch-ai')
-rw-r--r--misc/screen/patches/patch-ai24
1 files changed, 24 insertions, 0 deletions
diff --git a/misc/screen/patches/patch-ai b/misc/screen/patches/patch-ai
new file mode 100644
index 00000000000..8486f862ac3
--- /dev/null
+++ b/misc/screen/patches/patch-ai
@@ -0,0 +1,24 @@
+$NetBSD: patch-ai,v 1.1 2002/09/15 06:51:37 kim Exp $
+
+Use utmpx on NetBSD where available.
+
+--- os.h.orig Tue Jan 8 10:42:33 2002
++++ os.h Sun Sep 15 01:47:33 2002
+@@ -260,9 +260,15 @@
+ #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))
+ # include <utmpx.h>
+-# define UTMPFILE UTMPX_FILE
++# ifdef __NetBSD__
++# define UTMPFILE _PATH_UTMPX
++# define NetBSD_UTMP
++# else
++# define UTMPFILE UTMPX_FILE
++# endif
+ # define utmp utmpx
+ # define getutent getutxent
+ # define getutid getutxid