Fix portability issues

Signed-off-by: Masanori Ogino <mogino@acm.org>
This commit is contained in:
Jörg Sonnenberger 2009-10-06 17:41:49 +00:00 • committed by Masanori Ogino
commit 109af13829
5 changed files with 8 additions and 10 deletions

View file

@ -40,14 +40,13 @@
#include <string.h>
#include <unistd.h>
static char *getttys();
char *ttyname();
char *getttys();
char *strrchr();
static char *ttys = "/etc/ttys"; static char *ttys = "/etc/ttys";
#define NULL 0 #define NULL 0

View file

@ -35,7 +35,7 @@
#include <string.h>
#include <stdio.h> #include <stdio.h>
#include <ctype.h> #include <ctype.h>
#include <locale.h> #include <locale.h>

View file

@ -35,7 +35,7 @@
#include <string.h>
#include <stdio.h> #include <stdio.h>
#include <ctype.h> #include <ctype.h>

View file

@ -36,7 +36,7 @@
#include <string.h>
#include <stdio.h> #include <stdio.h>
#include <locale.h> #include <locale.h>
#include <ctype.h> #include <ctype.h>
@ -108,9 +108,8 @@ sjset_code()
getsjrc () getsjrc ()
{ {
FILE *fd, *fopen(); FILE *fd;
register char *p; register char *p;
char *getenv();
sjset_code(); sjset_code();
RCfile[0] = '\0'; RCfile[0] = '\0';

View file

@ -33,7 +33,7 @@
* $SonyDate: 1995/02/10 06:02:25 $ * $SonyDate: 1995/02/10 06:02:25 $
*/ */
#include <string.h>
#include "wchar16.h" #include "wchar16.h"
#include "sj.h" #include "sj.h"