[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: missing features.h

> From: Pieter Grimmerink <mailinglists@xxxxxxx.nl>
> Date: Wed, 23 Oct 2002 12:28:10 +0200

> On my workstation, features.h defines __USE_MISC for me (when I specify 
> and features.h is included by almost every header in /usr/include, so as long 
> as I specify _BSD_SOURCE, I can use CRTSCTS when including <termios.h>
> Now with cris, the include files that replace files in /usr/include do not 
> include features.h,

No, features.h *is* included.  If not, I'm surprised __USE_MISC
has any effect.

> therefore __USE_MISC is not defined for me, and I have to 
> define it myself.

Don't use __USE_MISC.  Use _BSD_SOURCE or _GNU_SOURCE.

> Could there be something wrong with my include paths, or is this supposed to 
> work like this?

Did you install glibc correctly?

An example program would help understanding what's wrong.

brgds, H-P