diff options
author | Igor Pashev <pashev.igor@gmail.com> | 2017-06-21 22:17:18 +0300 |
---|---|---|
committer | Igor Pashev <pashev.igor@gmail.com> | 2017-06-21 22:17:18 +0300 |
commit | d6613223d452b8a6c00e1adb78a8bef5d6445707 (patch) | |
tree | 02a5b907dacc15a2d23599575fef6d5c55a9c43e | |
parent | 8c22ae8bf2040179ab1029900004b7ceb70ef0f9 (diff) | |
download | libept-d6613223d452b8a6c00e1adb78a8bef5d6445707.tar.gz |
sys: O_PATH & O_DIRECTORY may be missed
-rw-r--r-- | ept/utils/sys.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/ept/utils/sys.cc b/ept/utils/sys.cc index 8f6f2ff..695a557 100644 --- a/ept/utils/sys.cc +++ b/ept/utils/sys.cc @@ -12,6 +12,14 @@ #include <fcntl.h> #include <alloca.h> +#ifndef O_PATH +# define O_PATH 0 +#endif + +#ifndef O_DIRECTORY +# define O_DIRECTORY 0 +#endif + namespace { inline const char* to_cstring(const std::string& s) |