diff options
author | pixel <pixel> | 2002-12-23 20:59:21 +0000 |
---|---|---|
committer | pixel <pixel> | 2002-12-23 20:59:21 +0000 |
commit | c816dcb3ccae5e4cc187c936703be42cf9972f58 (patch) | |
tree | 82cadc8fe36d29de045be69989482c62b9f0036f | |
parent | 72649e650c1207c371154c7eeac70e33eefbc785 (diff) |
Whoups, forgot second part of S_ISREG ugly workaround.
-rw-r--r-- | lib/Output.cc | 4 |
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__ |