summaryrefslogtreecommitdiff
path: root/ext/File/Glob
diff options
context:
space:
mode:
Diffstat (limited to 'ext/File/Glob')
-rw-r--r--ext/File/Glob/bsd_glob.c19
1 files changed, 18 insertions, 1 deletions
diff --git a/ext/File/Glob/bsd_glob.c b/ext/File/Glob/bsd_glob.c
index 7ec58aa489..6989df883c 100644
--- a/ext/File/Glob/bsd_glob.c
+++ b/ext/File/Glob/bsd_glob.c
@@ -207,7 +207,24 @@ my_readdir(DIR *d)
#endif
}
#else
-#define my_readdir readdir
+
+/* ReliantUNIX (OS formerly known as SINIX) defines readdir
+ * in LFS-mode to be a 64-bit version of readdir. */
+
+# ifdef sinix
+static Direntry_t * my_readdir(DIR*);
+
+static Direntry_t *
+my_readdir(DIR *d)
+{
+ return readdir(d);
+}
+# else
+
+# define my_readdir readdir
+
+# endif
+
#endif
#ifdef MACOS_TRADITIONAL