summaryrefslogtreecommitdiff
path: root/dir.c
diff options
context:
space:
mode:
Diffstat (limited to 'dir.c')
-rw-r--r--dir.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/dir.c b/dir.c
index d5267a86e8..efb28e6848 100644
--- a/dir.c
+++ b/dir.c
@@ -334,7 +334,7 @@ static VALUE
dir_tell(dir)
VALUE dir;
{
-#if !defined(__CYGWIN32__) && !defined(__BEOS__)
+#ifdef HAVE_TELLDIR
DIR *dirp;
long pos;
@@ -352,7 +352,7 @@ dir_seek(dir, pos)
{
DIR *dirp;
-#if !defined(__CYGWIN32__) && !defined(__BEOS__)
+#ifdef HAVE_SEEKDIR
GetDIR(dir, dirp);
seekdir(dirp, NUM2INT(pos));
return dir;