]> granicus.if.org Git - spl/commit
Linux 3.4 compat, __clear_close_on_exec replaces FD_CLR
authorRichard Yao <ryao@gentoo.org>
Wed, 6 Jun 2012 16:51:53 +0000 (16:51 +0000)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 13 Jun 2012 23:18:51 +0000 (16:18 -0700)
commite0093fea58f2ce2764b0b43337c960ed4a5d1b73
treeb2313721f9c49493b0109b7767de06c9e18a00b0
parenteaac9ba5102797e0a7e5a1eedb43d792a44770c8
Linux 3.4 compat, __clear_close_on_exec replaces FD_CLR

torvalds/linux@1dce27c5aa6770e9d195f2bb7db1db3d4dde5591 introduced
__clear_close_on_exec() as a replacement for FD_CLR. Further commits
appear to have removed FD_CLR from the Linux source tree.  This
causes the following failure:

  error: implicit declaration of function '__FD_CLR'
  [-Werror=implicit-function-declaration]

To correct this we update the code to use the current
__clear_close_on_exec() interface for readability.  Then we introduce
an autotools check to determine if __clear_close_on_exec() is available.
If it isn't then we define some compatibility logic which used the older
FD_CLR() interface.

Signed-off-by: Richard Yao <ryao@gentoo.org>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #124
config/spl-build.m4
configure
include/linux/file_compat.h
module/splat/splat-vnode.c
spl_config.h.in