diff liboctave/dir-ops.cc @ 14155:583d3d6f6fde stable

use gnulib::readdir * build-aux/bootstrap.conf (gnulib_modules): Include readdir and rewinddir in the list. * lo-sysdep.h, lo-sysdep.cc (struct __DIR, opendir, rewinddir, closedir, readdir): Delete declarations and functions. * dir-ops.cc (dir_entry::read): Use gnulib::readdir. * kpse.cc (do_subdir): Likewise.
author John W. Eaton <jwe@octave.org>
date Fri, 06 Jan 2012 10:51:11 -0500
parents 72c96de7a403
children
line wrap: on
line diff
--- a/liboctave/dir-ops.cc
+++ b/liboctave/dir-ops.cc
@@ -77,7 +77,7 @@
 
       struct dirent *dir_ent;
 
-      while ((dir_ent = readdir (static_cast<DIR *> (dir))))
+      while ((dir_ent = gnulib::readdir (static_cast<DIR *> (dir))))
         {
           if (dir_ent)
             dirlist.push_back (dir_ent->d_name);