mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
Remove dependency on detection of HAVE_DIRFD for use of fdopendir().
Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org> Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org> Autobuild-Date(master): Fri Apr 12 16:21:10 CEST 2013 on sn-devel-104
This commit is contained in:
parent
0fe894fb89
commit
7a4dd84595
@ -634,13 +634,11 @@ void kernel_flock(int fd, uint32 share_mode, uint32 access_mask)
|
||||
|
||||
/*******************************************************************
|
||||
An fdopendir wrapper.
|
||||
Ugly hack - we need dirfd for this to work correctly in the
|
||||
calling code.. JRA.
|
||||
********************************************************************/
|
||||
|
||||
DIR *sys_fdopendir(int fd)
|
||||
{
|
||||
#if defined(HAVE_FDOPENDIR) && defined(HAVE_DIRFD)
|
||||
#if defined(HAVE_FDOPENDIR)
|
||||
return fdopendir(fd);
|
||||
#else
|
||||
errno = ENOSYS;
|
||||
|
Loading…
Reference in New Issue
Block a user