If it is, attached is a small patch to get 2.7.9 compiling and working
properly (trouble parsing "pts/dd") on Solaris 2.8.  Oh.  And I had to rerun
autoconf so configure would check for ut_pid in struct utmp.
-----------------------------------------------------------------------------
Mark Leisher
Computing Research Lab                    But blogging's political bias
New Mexico State University               is not so much left/right as
Box 30001, Dept. 3CRL                     anti-idiot.
Las Cruces, NM  88003                          -- Glenn Reynolds
--- autoconf/config.h.in.orig   Fri Dec 13 09:18:37 2002
+++ autoconf/config.h.in        Fri Dec 13 09:19:06 2002
@@ -186,6 +186,9 @@
 /* Define if struct utmp contains ut_host */
 #undef HAVE_UTMP_HOST
 
+/* Define if struct utmp contains ut_pid */
+#undef HAVE_UTMP_PID
+
 /* Define location of utmp */
 #undef RXVT_UTMP_FILE
 
--- src/logging.c.orig  Fri Dec 13 10:04:10 2002
+++ src/logging.c       Fri Dec 13 10:05:05 2002
@@ -66,6 +66,9 @@
 #ifdef HAVE_STRUCT_UTMPX
     struct utmpx   *utx = &(r->h->utx);
 #endif
+#ifdef RXVT_UTMP_PID
+    int i;
+#endif
     char            ut_id[5];
     struct passwd  *pwent = getpwuid(getuid());
 
--- src/rxvt.h.orig     Tue Nov 19 08:55:14 2002
+++ src/rxvt.h  Fri Dec 13 09:53:13 2002
@@ -799,14 +799,22 @@
 #define rxvt_Gr_ButtonPress(x,y)       rxvt_Gr_ButtonReport (r, 'P',(x),(y))
 #define rxvt_Gr_ButtonRelease(x,y)     rxvt_Gr_ButtonReport (r, 'R',(x),(y))
 
+#if HAVE_UTMP_PID
+#define RXVT_UTMP_PID 1
+#endif
+
 #ifdef UTMP_SUPPORT
 # if !defined(RXVT_UTMPX_FILE) || !defined(HAVE_STRUCT_UTMPX)
-#  undef HAVE_UTMPX_H
+#  undef HAVE_UTMPX_HOST
 #  undef HAVE_STRUCT_UTMPX
+# else
+# define HAVE_UTMPX_H 1
 # endif
 # if !defined(RXVT_UTMP_FILE) || !defined(HAVE_STRUCT_UTMP)
-#  undef HAVE_UTMP_H
+#  undef HAVE_UTMP_HOST
 #  undef HAVE_STRUCT_UTMP
+# else
+# define HAVE_UTMP_H 1
 # endif
 
 # ifdef HAVE_UTMPX_H


Reply via email to