stat.h unavailable in Linux?
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 开发者_JAVA百科in Linux?
stat.h is available under the "sys" folder, try to #include it from there or add it to the list of include directories.
From man stat.h
:
NAME sys/stat.h - data returned by the stat() function SYNOPSIS #include <sys/stat.h>
精彩评论