From: mar Date: Fri, 22 Oct 1993 18:10:41 +0000 (+0000) Subject: posixify source X-Git-Tag: release77~104 X-Git-Url: http://andersk.mit.edu/gitweb/moira.git/commitdiff_plain/cde7e985a4ed36af28d822d4dfe3a2f489b4bbf8 posixify source --- diff --git a/clients/moira/menu.c b/clients/moira/menu.c index fdc45ef5..87222a1d 100644 --- a/clients/moira/menu.c +++ b/clients/moira/menu.c @@ -25,17 +25,19 @@ static char rcsid_menu_c[] = "$Header$"; #include #include #include +#include #include #include #ifdef POSIX +#include #include #endif /* POSIX */ #include -#include #ifndef sun #include #endif #include +#include #include "menu.h" #ifndef __STDC__ @@ -57,6 +59,10 @@ extern char *whoami; 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 */ @@ -160,7 +166,6 @@ make_ms(length) int length; { struct menu_screen *ms; - char *malloc(); if (MAX_TITLE + length + MIN_INPUT > LINES) { fputs("Menu too big!\n", stderr);