diff options
author | Brent Cook <bcook@rapid7.com> | 2015-07-21 12:04:07 -0600 |
---|---|---|
committer | Brent Cook <bcook@rapid7.com> | 2015-07-21 12:04:07 -0600 |
commit | cbdc8ca82011df4a524baa08d28f0ffb4ae40cb6 (patch) | |
tree | 5b996f42f586854e6ec0a2b1bee08644873605ba /include/compat/sys/stat.h | |
parent | 5d8a1cf7155130bd8101090d7e1d0c2f90d9b123 (diff) | |
download | portable-cbdc8ca82011df4a524baa08d28f0ffb4ae40cb6.tar.gz portable-cbdc8ca82011df4a524baa08d28f0ffb4ae40cb6.tar.bz2 portable-cbdc8ca82011df4a524baa08d28f0ffb4ae40cb6.zip |
tighten up compat include paths, fix glibc compatibility
Diffstat (limited to 'include/compat/sys/stat.h')
-rw-r--r-- | include/compat/sys/stat.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/include/compat/sys/stat.h b/include/compat/sys/stat.h index 55135d8..9d48251 100644 --- a/include/compat/sys/stat.h +++ b/include/compat/sys/stat.h | |||
@@ -6,7 +6,10 @@ | |||
6 | #ifndef LIBCRYPTOCOMPAT_SYS_STAT_H | 6 | #ifndef LIBCRYPTOCOMPAT_SYS_STAT_H |
7 | #define LIBCRYPTOCOMPAT_SYS_STAT_H | 7 | #define LIBCRYPTOCOMPAT_SYS_STAT_H |
8 | 8 | ||
9 | #ifdef _MSC_VER | 9 | #ifndef _MSC_VER |
10 | #include_next <sys/stat.h> | ||
11 | #else | ||
12 | |||
10 | #include <windows.h> | 13 | #include <windows.h> |
11 | #include <../include/sys/stat.h> | 14 | #include <../include/sys/stat.h> |
12 | 15 | ||
@@ -88,8 +91,6 @@ | |||
88 | #define S_ISCHR(mode) (((mode) & S_IFMT) == S_IFCHR) | 91 | #define S_ISCHR(mode) (((mode) & S_IFMT) == S_IFCHR) |
89 | #define S_ISBLK(mode) (((mode) & S_IFMT) == S_IFBLK) | 92 | #define S_ISBLK(mode) (((mode) & S_IFMT) == S_IFBLK) |
90 | 93 | ||
91 | #else | ||
92 | #include_next <sys/stat.h> | ||
93 | #endif | 94 | #endif |
94 | 95 | ||
95 | #endif | 96 | #endif |