summaryrefslogtreecommitdiffstats
path: root/src/util/pty/update_utmp.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/pty/update_utmp.c')
-rw-r--r--src/util/pty/update_utmp.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/util/pty/update_utmp.c b/src/util/pty/update_utmp.c
index f43ab3940..758d40a16 100644
--- a/src/util/pty/update_utmp.c
+++ b/src/util/pty/update_utmp.c
@@ -25,6 +25,11 @@
#define UTMP_FILE _PATH_UTMP
#endif
+/* if it is *still* missing, assume SunOS */
+#ifndef UTMP_FILE
+#define UTMP_FILE "/etc/utmp"
+#endif
+
long pty_update_utmp (process_type, pid, username, line, host)
int process_type;
int pid;