--- rxvt-unicode/src/logging.C 2006/01/22 01:00:46 1.37 +++ rxvt-unicode/src/logging.C 2006/01/22 04:01:52 1.38 @@ -36,6 +36,14 @@ #include "../config.h" +#include + +#include +#include +#include +#include +#include + #include "ptytty.h" #if UTMP_SUPPORT @@ -89,7 +97,7 @@ sprintf (ut_id, "vt%02x", (i & 0xff)); /* sysv naming */ else if (strncmp (pty, "pty", 3) && strncmp (pty, "tty", 3)) { - warn ("can't parse tty name \"%s\", not adding utmp entry.\n", pty); + ptytty_warn ("can't parse tty name \"%s\", not adding utmp entry.\n", pty); return; } #endif @@ -419,7 +427,7 @@ pwent = getpwuid (getuid ()); if (!pwent) { - warn ("no entry in password file, not updating lastlog.\n"); + ptytty_warn ("no entry in password file, not updating lastlog.\n"); return; }