* libc/include/sys/unistd.h [X_OK]: Use better protection against Cygwin X_OK
definitions in sys/file.h.
This commit is contained in:
parent
1acf5c29c8
commit
cb4cc28370
|
@ -1,3 +1,8 @@
|
||||||
|
2001-04-22 Earnie Boyd <earnie@users.sourceforge.net>
|
||||||
|
|
||||||
|
* libc/include/sys/unistd.h [X_OK]: Use better protection against
|
||||||
|
Cygwin X_OK definitions in sys/file.h.
|
||||||
|
|
||||||
Fri Apr 20 23:17:51 2001 Christopher Faylor <cgf@cygnus.com>
|
Fri Apr 20 23:17:51 2001 Christopher Faylor <cgf@cygnus.com>
|
||||||
|
|
||||||
* libc/include/sys/time.h: Define timercmp and other macros for
|
* libc/include/sys/time.h: Define timercmp and other macros for
|
||||||
|
|
|
@ -131,10 +131,11 @@ int _EXFUN(symlink, (const char *__name1, const char *__name2));
|
||||||
#define F_OK 0
|
#define F_OK 0
|
||||||
#define R_OK 4
|
#define R_OK 4
|
||||||
#define W_OK 2
|
#define W_OK 2
|
||||||
# define X_OK 1
|
|
||||||
|
|
||||||
#if defined (__CYGWIN__) && !defined (__INSIDE_CYGWIN__)
|
|
||||||
#undef X_OK
|
#undef X_OK
|
||||||
|
#if !defined (__CYGWIN__) || defined (__INSIDE_CYGWIN__)
|
||||||
|
# define X_OK 1
|
||||||
|
#else
|
||||||
# define X_OK _cygwin_X_OK
|
# define X_OK _cygwin_X_OK
|
||||||
extern const unsigned _cygwin_X_OK;
|
extern const unsigned _cygwin_X_OK;
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue