From 7a4dd845958f1411daa8031ca242987001ab2f26 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Wed, 10 Apr 2013 16:30:10 -0700 Subject: [PATCH] Remove dependency on detection of HAVE_DIRFD for use of fdopendir(). Signed-off-by: Jeremy Allison Reviewed-by: Andreas Schneider Autobuild-User(master): Andreas Schneider Autobuild-Date(master): Fri Apr 12 16:21:10 CEST 2013 on sn-devel-104 --- source3/lib/system.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/source3/lib/system.c b/source3/lib/system.c index d69f1c66f12..8dbf7dc33bc 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; -- 2.11.4.GIT