www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/02/15/03:40:25

Date: Thu, 15 Feb 1996 10:28:56 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Frank Donahoe <fdonahoe AT wilkes1 DOT wilkes DOT edu>
Cc: Djgpp <djgpp AT delorie DOT com>
Subject: Re: ioctl missing

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019