summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/Output.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/Output.cc b/lib/Output.cc
index 2007757..296510d 100644
--- a/lib/Output.cc
+++ b/lib/Output.cc
@@ -16,6 +16,10 @@
#include "Exceptions.h"
#include "gettext.h"
+#ifndef S_ISREG
+#define S_ISREG(x) 1
+#endif
+
Output::Output(String no, int create, int trunc) throw (GeneralException) :
Handle(no.strlen() ? open(no.to_charp(), O_WRONLY | (O_CREAT * (create ? 1 : 0)) | (O_TRUNC * (trunc ? 1 : 0))
#if defined __linux__ || defined __CYGWIN32__