summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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) {