mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-05-21 12:10:26 +02:00
Crib not on dirfd.m4 if we need/want dirfd everywhere in the future.
This commit is contained in:
parent
c82f332e1e
commit
49acac79a1
1 changed files with 4 additions and 2 deletions
|
@ -203,9 +203,11 @@ void *alloca (size_t);
|
|||
/* 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. */
|
||||
used elsewhere. Crib note: If we need more then gnulib has a dirfd.m4
|
||||
figuring out how to get the fd (dirfd function, dirfd macro, dd_fd field,
|
||||
or d_fd field). */
|
||||
#ifndef dirfd
|
||||
#define dirfd(dirstream) (dirstream->dd_fd)
|
||||
#define dirfd(dirstream) ((dirstream)->dd_fd)
|
||||
#endif
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue