Skip to content

Commit

Permalink
dirent.h defines things now in stat.h
Browse files Browse the repository at this point in the history
There is some trickery with stat.h so lets move
cautiously.
  • Loading branch information
lundman authored and andrewc12 committed Sep 23, 2022
1 parent 410482b commit e940c00
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions lib/libspl/include/os/windows/dirent.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,16 @@ extern "C" {
#include <sys/stat.h>

#if defined(_MSC_VER)
#define S_IRUSR S_IREAD /* read, user */
#define S_IWUSR S_IWRITE /* write, user */
#define S_IXUSR 0 /* execute, user */
#define S_IRGRP 0 /* read, group */
#define S_IWGRP 0 /* write, group */
#define S_IXGRP 0 /* execute, group */
#define S_IROTH 0 /* read, others */
#define S_IWOTH 0 /* write, others */
#define S_IXOTH 0 /* execute, others */
// These are now defined in stat.h
// #define S_IRUSR S_IREAD /* read, user */
// #define S_IWUSR S_IWRITE /* write, user */
// #define S_IXUSR 0 /* execute, user */
// #define S_IRGRP 0 /* read, group */
// #define S_IWGRP 0 /* write, group */
// #define S_IXGRP 0 /* execute, group */
// #define S_IROTH 0 /* read, others */
// #define S_IWOTH 0 /* write, others */
// #define S_IXOTH 0 /* execute, others */
#endif


Expand Down

0 comments on commit e940c00

Please sign in to comment.