* include/sys/file.h: Move X_OK protection earlier.

* dtable.cc (dtable::vfork_child_fixup): Avoid closing already closed handles.
This commit is contained in:
Christopher Faylor
2001-04-20 15:50:03 +00:00
parent bfbc1aecdc
commit cdcfe4e8e9
3 changed files with 15 additions and 3 deletions

View File

@@ -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