#include <mit-copyright.h>
#include <sys/types.h>
#include <stdio.h>
+#include <string.h>
#include <signal.h>
#include <curses.h>
#ifdef POSIX
+#include <unistd.h>
#include <termios.h>
#endif /* POSIX */
#include <ctype.h>
-#include <string.h>
#ifndef sun
#include <varargs.h>
#endif
#include <com_err.h>
+#include <moira.h>
#include "menu.h"
#ifndef __STDC__
FILE *log_file = (FILE *) NULL; /* file stream of log file */
int more_flg = 1;
+#ifdef POSIX
+extern char *malloc();
+#endif
+
/* Structure for holding current displayed menu */
struct menu_screen {
WINDOW *ms_screen; /* Window for this menu */
int length;
{
struct menu_screen *ms;
- char *malloc();
if (MAX_TITLE + length + MIN_INPUT > LINES) {
fputs("Menu too big!\n", stderr);