Re: problems compiling plan under libc6

1997-06-28 Thread Helmut Geyer
Your problem is quite easy to solve: libc5 was not really POSIX-compliant even when _POSIX_SOURCE was defined. S_IFDIR is the macro used by BSD and SVID while POSIX uses __S_IFDIR. If you define _BSD_SOURCE, _SVID_SOURCE or _GNU_SOURCE instead of _POSIX_SOURCE (or simply change the macro to include

RE: problems compiling plan under libc6

1997-06-28 Thread Michael Meskes
S_IFDIR is defined via . In fact this includes which has the real value. Just try this: #include main() { struct stat sbuf; if (sbuf.st_mode & S_IFDIR) exit(0); exit(1); } It compiles cleanly on my machine. However, file_r.c doesn't. But to be able to dig further I'd need more tha