Reputation: 32805
When I do #include <stat.h>
in Linux, I get a compiler error. I need this library for the S_IWRITE
flag, which in its turn is used in the context of system-level IO.
Is stat.h unavailable in Linux?
Upvotes: 2
Views: 805
Reputation: 799210
From man stat.h
:
NAME sys/stat.h - data returned by the stat() function SYNOPSIS #include <sys/stat.h>
Upvotes: 0
Reputation: 74290
stat.h is available under the "sys" folder, try to #include it from there or add it to the list of include directories.
Upvotes: 2