diff options
author | Richard Yao <[email protected]> | 2012-06-06 16:51:53 +0000 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2012-06-13 16:18:51 -0700 |
commit | e0093fea58f2ce2764b0b43337c960ed4a5d1b73 (patch) | |
tree | b2313721f9c49493b0109b7767de06c9e18a00b0 /spl_config.h.in | |
parent | eaac9ba5102797e0a7e5a1eedb43d792a44770c8 (diff) |
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 <[email protected]>
Signed-off-by: Brian Behlendorf <[email protected]>
Closes #124
Diffstat (limited to 'spl_config.h.in')
-rw-r--r-- | spl_config.h.in | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/spl_config.h.in b/spl_config.h.in index 05dcdc504..92c11df26 100644 --- a/spl_config.h.in +++ b/spl_config.h.in @@ -60,6 +60,9 @@ /* class_device_create() is available */ #undef HAVE_CLASS_DEVICE_CREATE +/* __clear_close_on_exec() is available */ +#undef HAVE_CLEAR_CLOSE_ON_EXEC + /* struct cred exists */ #undef HAVE_CRED_STRUCT |