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:
parent
1fe40cee4c
commit
0a331acc54
1 changed files with 5 additions and 3 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue