diff options
author | Christopher Faylor <me@cgf.cx> | 2001-04-20 15:50:03 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2001-04-20 15:50:03 +0000 |
commit | cdcfe4e8e9d71c9b0d18029baac6f2fb167afc21 (patch) | |
tree | e5d8c49cf3154099f6ba57fa40c945b59f15fa9e /winsup/cygwin/include/sys/file.h | |
parent | bfbc1aecdca4f960234d3eb9e524b22fe6573f02 (diff) | |
download | cygnal-cdcfe4e8e9d71c9b0d18029baac6f2fb167afc21.tar.gz cygnal-cdcfe4e8e9d71c9b0d18029baac6f2fb167afc21.tar.bz2 cygnal-cdcfe4e8e9d71c9b0d18029baac6f2fb167afc21.zip |
* include/sys/file.h: Move X_OK protection earlier.
* dtable.cc (dtable::vfork_child_fixup): Avoid closing already closed handles.
Diffstat (limited to 'winsup/cygwin/include/sys/file.h')
-rw-r--r-- | winsup/cygwin/include/sys/file.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/include/sys/file.h b/winsup/cygwin/include/sys/file.h index 9a63695df..85f9f4c74 100644 --- a/winsup/cygwin/include/sys/file.h +++ b/winsup/cygwin/include/sys/file.h @@ -25,10 +25,10 @@ #define F_OK 0 /* does file exist */ #define _X_OK 1 /* is it executable by caller */ +#undef X_OK #if defined (__CYGWIN__) || defined (__INSIDE_CYGWIN__) # define X_OK _X_OK /* Check for execute permission. */ #else -# undef X_OK extern const unsigned _cygwin_X_OK; # define X_OK _cygwin_X_OK #endif |