aboutsummaryrefslogtreecommitdiff
path: root/butl/process.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'butl/process.cxx')
-rw-r--r--butl/process.cxx9
1 files changed, 9 insertions, 0 deletions
diff --git a/butl/process.cxx b/butl/process.cxx
index aaab915..e67e12e 100644
--- a/butl/process.cxx
+++ b/butl/process.cxx
@@ -32,6 +32,15 @@ using namespace std;
using namespace butl::win32;
#endif
+#ifdef _MSC_VER // Unlikely to be fixed in newer versions.
+#define S_ISREG(m) (((m) & S_IFMT) == S_IFREG)
+# define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR)
+
+# define STDIN_FILENO 0
+# define STDOUT_FILENO 1
+# define STDERR_FILENO 2
+#endif // _MSC_VER
+
namespace butl
{
class auto_fd