diff options
author | Igor Pashev <pashev.igor@gmail.com> | 2019-11-27 16:36:15 +0300 |
---|---|---|
committer | Igor Pashev <pashev.igor@gmail.com> | 2019-11-27 17:16:58 +0300 |
commit | 4bc4356afc4049c9386adef677f692b8a387288a (patch) | |
tree | ab161419b1cf11957dfd032506c2923e42185834 | |
parent | 6f7e4e724c67ab01a65e577d607df54236e213d6 (diff) | |
download | mrust-4bc4356afc4049c9386adef677f692b8a387288a.tar.gz |
solaris: O_DIRECTORY may be undefined
-rw-r--r-- | tools/minicargo/build.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/minicargo/build.cpp b/tools/minicargo/build.cpp index 7754bcb2..c34bf36f 100644 --- a/tools/minicargo/build.cpp +++ b/tools/minicargo/build.cpp @@ -61,6 +61,10 @@ extern int _putenv_s(const char*, const char*); #include <target_detect.h> // tools/common/target_detect.h #define HOST_TARGET DEFAULT_TARGET_NAME +#ifndef O_DIRECTORY +#define O_DIRECTORY 0 +#endif + /// Class abstracting access to the compiler class Builder { |