Since this is clearly falling in a trap between contradicting standards (Posix vs. C99, and apparently the C99 side is a known, but not yet fixed bug), I'd suggest to drop "restricted" for these interface for now, or at least drop it for compilers known to break with the header file. Martin