1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-06-29 14:30:34 +02:00

(dirfd): Test with #ifndef rather than HAVE_DIRFD, since

it's a macro on MacOS X.  Reported by Claes Wallin.
This commit is contained in:
Kevin Ryde 2006-07-24 01:38:24 +00:00
parent 1fe40cee4c
commit 0a331acc54

View file

@ -200,9 +200,11 @@ void *alloca (size_t);
# define fchmod(fd, mode) (-1)
#endif /* __MINGW32__ */
/* This definition is for Solaris 10, it's probably not right elsewhere, but
that's ok, it shouldn't be used elsewhere. */
#if ! HAVE_DIRFD
/* dirfd() returns the file descriptor underlying a "DIR*" directory stream.
Found on MacOS X for instance. The following definition is for Solaris
10, it's probably not right elsewhere, but that's ok, it shouldn't be
used elsewhere. */
#ifndef dirfd
#define dirfd(dirstream) (dirstream->dd_fd)
#endif