Skip to content

Commit 6428000

Browse files
committed
raise an exception on dirseek, thus to allow us compilation.
1 parent 680d09b commit 6428000

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

dir.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -663,7 +663,6 @@ dir_tell(VALUE dir)
663663
#define dir_tell rb_f_notimplement
664664
#endif
665665

666-
#ifdef HAVE_SEEKDIR
667666
/*
668667
* call-seq:
669668
* dir.seek( integer ) -> dir
@@ -685,12 +684,13 @@ dir_seek(VALUE dir, VALUE pos)
685684
long p = NUM2LONG(pos);
686685

687686
GetDIR(dir, dirp);
687+
#ifdef HAVE_SEEKDIR
688688
seekdir(dirp->dir, p);
689689
return dir;
690-
}
691690
#else
692-
#define dir_seek rb_f_notimplement
691+
rb_notimplement();
693692
#endif
693+
}
694694

695695
/*
696696
* call-seq:

0 commit comments

Comments
 (0)