Fix portability issues
Signed-off-by: Masanori Ogino <mogino@acm.org>
This commit is contained in:
parent
0a67b18647
commit
109af13829
5 changed files with 8 additions and 10 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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>
|
||||||
|
|
|
||||||
|
|
@ -35,7 +35,7 @@
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
#include <string.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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';
|
||||||
|
|
|
||||||
|
|
@ -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"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue