#include <utmp.h> /* updwtmp() */
#endif
+#ifndef IUCLC
+# define IUCLC 0
+#endif
+
/*
* Some heuristics to find out what environment we are in: if it is not
* System V, assume it is SunOS 4.
// cur_dir_fd = xopen(".", O_DIRECTORY | O_NONBLOCK);
// xchdir("/dev");
// xstat(tty, &st);
-// if ((st.st_mode & S_IFMT) != S_IFCHR)
+// if (!S_ISCHR(st.st_mode))
// bb_error_msg_and_die("%s: not a character device", tty);
if (tty[0] != '/')