The mentioned problem with the undeclared identifier O_BINARY has been solved; thanks to D.Kastrup for pointing me to fcntl.h and to Ch.Sawtell for providing a PC specific header file, where this identifier is defined as 0. O_BINARY is indeed the only undeclared identifier and is used (in combination with the setmode routine) to enforce binary I/O.
The kpathsea library references (in a comment) setmode( ) as part of the non-standard header file io.h . Ralf Ralf Gärtner (OpenVMS & Tru64)