summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpixel <pixel>2002-12-23 20:54:40 +0000
committerpixel <pixel>2002-12-23 20:54:40 +0000
commit72649e650c1207c371154c7eeac70e33eefbc785 (patch)
tree2e9c1344d2a9230f6d9737985d7b5586ff0ec5da
parentc918391887c08d5ab4874daa5267401c08d6563a (diff)
S_ISREG ugly workaround....
-rw-r--r--lib/Input.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/Input.cc b/lib/Input.cc
index c7cd1d9..ee36ded 100644
--- a/lib/Input.cc
+++ b/lib/Input.cc
@@ -16,6 +16,10 @@
#include "Exceptions.h"
#include "gettext.h"
+#ifndef S_ISREG
+#define S_ISREG(x) 1
+#endif
+
Input::Input(const String & no) throw (GeneralException) :
Handle(no.strlen() ? open(no.to_charp(), O_RDONLY) : dup(0)),
n(no) {