diff options
Diffstat (limited to 'misc/screen/patches/patch-aj')
-rw-r--r-- | misc/screen/patches/patch-aj | 34 |
1 files changed, 29 insertions, 5 deletions
diff --git a/misc/screen/patches/patch-aj b/misc/screen/patches/patch-aj index dc7429fca45..e8cfd8e9dc7 100644 --- a/misc/screen/patches/patch-aj +++ b/misc/screen/patches/patch-aj @@ -1,10 +1,11 @@ -$NetBSD: patch-aj,v 1.1 2002/09/15 06:51:38 kim Exp $ +$NetBSD: patch-aj,v 1.2 2004/06/16 21:35:00 christos Exp $ -Detect getutent correctly on NetBSD with utmpx. +1. Detect getutent correctly on NetBSD with utmpx. +2. Check sys/stropts.h header ---- configure.in.orig Sat Sep 14 23:22:33 2002 -+++ configure.in Sat Sep 14 23:37:06 2002 -@@ -798,9 +798,15 @@ +--- configure.in.orig 2003-06-03 07:58:24.000000000 -0400 ++++ configure.in 2004-06-16 16:11:55.000000000 -0400 +@@ -815,9 +815,15 @@ AC_TRY_LINK([ #include <time.h> /* to get time_t on SCO */ #include <sys/types.h> @@ -21,3 +22,26 @@ Detect getutent correctly on NetBSD with utmpx. #else #include <utmp.h> #endif +@@ -1209,6 +1215,7 @@ + AC_TRY_LINK(,[vsprintf(0,0,0);], AC_MSG_RESULT(yes);AC_DEFINE(USEVARARGS), AC_MSG_RESULT(no)) + + AC_HEADER_DIRENT ++AC_CHECK_HEADERS(sys/stropts.h) + + AC_MSG_CHECKING(for setenv) + AC_TRY_LINK(,[setenv((char *)0,(char *)0);unsetenv((char *)0);], AC_MSG_RESULT(yes);AC_DEFINE(USESETENV), + +--- config.h.in.orig 2003-12-05 08:59:39.000000000 -0500 ++++ config.h.in 2004-06-16 15:58:52.000000000 -0400 +@@ -431,6 +431,11 @@ + #undef HAVE_DIRENT_H + + /* ++ * Define HAVE_SYS_STROPTS_H if your system has <sys/stropts.h> ++ */ ++#undef HAVE_SYS_STROPTS_H ++ ++/* + * If your system has getutent(), pututline(), etc. to write to the + * utmp file, define GETUTENT. + */ |