Red Hat Bugzilla – Bug 62516
glibc C99 issue
Last modified: 2007-04-18 12:41:32 EDT
Can't compile "hello world" if I use "-std=c99" and include <semaphore.h> in my
program... without using it.
Ulrich point is that you should not include non-ISOC99 headers unless you
use feature macro for standard which includes the header (e.g.
-std=c99 -D_GNU_SOURCE or -std=c99 -D_XOPEN_SOURCE=500).
I'll tweak the header nevertheless.
Fixed in glibc-2.2.5-32.