31 lines
818 B
Plaintext
31 lines
818 B
Plaintext
--- Xwnmo/xjutil/jutil.c.orig
|
|
+++ Xwnmo/xjutil/jutil.c
|
|
@@ -82,6 +82,8 @@
|
|
/* jisho utility routine for otasuke (user interface) process */
|
|
|
|
#include <stdio.h>
|
|
+#include <stdlib.h>
|
|
+#include <sys/stat.h>
|
|
#include <X11/Xos.h>
|
|
#include "jslib.h"
|
|
#include "commonhd.h"
|
|
@@ -578,7 +580,6 @@ register char *dirname;
|
|
int (*error_handler)(), (*message_handler)();
|
|
{
|
|
char gomi[128];
|
|
- extern int mkdir(), chmod(), chown();
|
|
|
|
if(dirname[0] == C_LOCAL){
|
|
if(*(dirname + 1) == 0) return(0);
|
|
@@ -664,10 +665,7 @@ int (*error_handler)(), (*message_handler)();
|
|
extern int srand();
|
|
extern long rand();
|
|
#else
|
|
- extern int srandom();
|
|
- extern long random();
|
|
#endif
|
|
- extern long time();
|
|
|
|
if(pwd_file == NULL || *pwd_file == 0) return(0);
|
|
if(access(pwd_file, F_OK) != -1) return(0);
|