#include <pwd.h>
#include <moira.h>
#include <sys/file.h>
+#include <fcntl.h>
#include <sys/ioctl.h>
+#ifdef SOLARIS
+#include <termios.h>
+#endif
#include "update.h"
extern int auth_001(), inst_001();
extern char *config_lookup();
extern void gdb_debug();
-extern int exit(), abort(), errno;
+extern int abort(), errno;
+#ifndef sun
+extern int exit();
+#endif
extern STRING instructions;
CONNECTION conn;