[project @ 2004-08-24 19:26:45 by sof]
authorsof <unknown>
Tue, 24 Aug 2004 19:26:47 +0000 (19:26 +0000)
committersof <unknown>
Tue, 24 Aug 2004 19:26:47 +0000 (19:26 +0000)
commit34f3b03186031fa1f668e6bb7c29b92848ac6d34
tree33d7d4f66ebff68d0bf604843be3ecd56d87351b
parent12cad97e06919e86e5b94559de8ca9900084b5ab
[project @ 2004-08-24 19:26:45 by sof]
Pair of new macros for checking how dirent.h is implemented. Needed
to deal with versioning issues under mingw only, but won't do
any harm on other plats. The macros are:

- FP_READDIR_EOF_ERRNO
     checks what readdir() sets errno to upon reaching end of a directory.
     (that value is available as READDIR_ERRNO_EOF in mk/config.h). Up
     until recently, mingw's readdir() did set errno rather than just
     leaving it alone.
- FP_DIRENT_FLAT_LAYOUT
     checks how 'struct dirent' is defined; defines
     config.h:STRUCT_DIRENT_FLAT_LAYOUT to 1 if 'struct dirent' is terminated
     with a d_name array. Up until recently, mingw didn't define it as such.

To be hooked up to libraries/base/{include/HsBase.h,cbits/dirUtils.c} and
quite possibly merged to STABLE.
aclocal.m4
configure.ac