Yuri Prokushev wrote:
Where defined F_* constants for rts.c?
rts.c:1566: `S_IRUSR' undeclared (first use in this function) rts.c:1566: `S_IWUSR' undeclared (first use in this function) rts.c:1566: `S_IXUSR' undeclared (first use in this function) rts.c:1635: warning: implicit declaration of function `S_ISDIR'
These should be defined in <sys/stat.h> or some other system header.
rts.c: In function `_p_FlushHandle': rts.c:1682: warning: implicit declaration of function `fsync'
This code is enclosed in `#ifdef HAVE_FSYNC'. Similar for other functions (and the F_* constants which are in `#ifdef HAVE_FCNTL').
Since HAVE_FSYNC is set (by configure, unless you changed this manually), I assume your system does in fact have these functions, but it's missing the declarations in the headers (as for the S_* constants).
This is for EMX, is it? Well, I haven't used EMX myself so I don't know what its headers look like. Perhaps you just have to include some more header (if I know which one, I can do it automatically in the future, but you can try adding #include statements in rts.c manually).
Is anyone on this lists who's used EMX recently? I haven't heard much of it for some years ...
Frank