Mail Archives: djgpp/1996/02/15/03:40:25
On Wed, 14 Feb 1996, Frank Donahoe wrote:
> I tried your suggestion of replacing the local config.h with <sys/config.h>
> but the compilation of "ls" still fails unable to find "ioclt.h." I have
> a working 32-bit "ls.exe" compiled with DJGPP V2 to prove that it worked
> once.
It sometimes helps to look at the source which includes the missing file
and do the obvious thing. Look at ls.c, it needs <sys/ioctl.h> *only* if
_POSIX_SOURCE isn't defined. So how about defining _POSIX_SOURCE (add
-D_POSIX_SOURCE to CPPFLAGS in the Makefile) and seeing what happens?
DJGPP v2.0 is POSIX-compliant and shouldn't have any problems compiling
when this symbol is defined.
- Raw text -