summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2013-04-10 16:30:10 -0700
committerAndreas Schneider <asn@cryptomilk.org>2013-04-12 16:21:09 +0200
commit7a4dd845958f1411daa8031ca242987001ab2f26 (patch)
treee752ede7b4d2a8e028f16e51f6bfefef2587c0fc
parent0fe894fb89f4867e266bb04670a58101311e0234 (diff)
downloadsamba-7a4dd845958f1411daa8031ca242987001ab2f26.tar.gz
samba-7a4dd845958f1411daa8031ca242987001ab2f26.tar.bz2
samba-7a4dd845958f1411daa8031ca242987001ab2f26.zip
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
-rw-r--r--source3/lib/system.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/source3/lib/system.c b/source3/lib/system.c
index d69f1c66f1..8dbf7dc33b 100644
--- a/source3/lib/system.c
+++ b/source3/lib/system.c
@@ -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;