On 10/10/2014 07:45 AM, Jakub Jelinek wrote:
On Fri, Oct 10, 2014 at 07:23:02AM -0700, Chuck Forsberg WA7KGX wrote:
Why does this program fragment fail to compile if a C standard
is specified?  I compiles without complaint with a simple cc -c qq.c
You chose a strict conformance mode, in which sys/stat.h doesn't provide
those.  You need either -D_XOPEN_SOURCE, -D_GNU_SOURCE, -D_DEFALT_SOURCE
etc. feature test macros (see info libc on it), or -std=gnu11 (or
-std=gnu99, -std=gnu89 etc.).

        Jakub
Where is S_IFMT et al. defined in strict conformance mode?
Why not in sys/stat.h?


--
     Chuck Forsberg WA7KGX   c...@omen.com   www.omen.com
Developer of Industrial ZMODEM(Tm) for Embedded Applications
  Omen Technology Inc      "The High Reliability Software"
10255 NW Old Cornelius Pass Portland OR 97231   503-614-0430

--
test mailing list
test@lists.fedoraproject.org
To unsubscribe:
https://admin.fedoraproject.org/mailman/listinfo/test

Reply via email to