* libc/include/sys/features.h: Add _POSIX_TIMERS define for __CYGWIN__.

* libc/include/sys/reent.h (__getreent): Protect against possibly being
defined.
* libc/include/sys/unistd.h (fdatasync): Don't define for __CYGWIN__.
This commit is contained in:
Christopher Faylor 2004-02-09 02:22:01 +00:00
parent 6946073e78
commit 733309f576
4 changed files with 21 additions and 9 deletions

View File

@ -1,3 +1,10 @@
2004-02-08 Christopher Faylor <cgf@redhat.com>
* libc/include/sys/features.h: Add _POSIX_TIMERS define for __CYGWIN__.
* libc/include/sys/reent.h (__getreent): Protect against possibly being
defined.
* libc/include/sys/unistd.h (fdatasync): Don't define for __CYGWIN__.
2004-02-05 Paul Brook <paul@codesourcery.com> 2004-02-05 Paul Brook <paul@codesourcery.com>
* libc/include/machine/ieeefp.h[__arm__][__VFP_FP__]: Set * libc/include/machine/ieeefp.h[__arm__][__VFP_FP__]: Set

View File

@ -87,6 +87,7 @@ extern "C" {
# define _POSIX_THREAD_PRIORITY_SCHEDULING 1 # define _POSIX_THREAD_PRIORITY_SCHEDULING 1
# define _POSIX_THREAD_ATTR_STACKSIZE 1 # define _POSIX_THREAD_ATTR_STACKSIZE 1
# define _POSIX_SEMAPHORES 1 # define _POSIX_SEMAPHORES 1
# define _POSIX_TIMERS 1
#endif #endif
#ifdef __cplusplus #ifdef __cplusplus

View File

@ -736,7 +736,9 @@ void _reclaim_reent _PARAMS ((struct _reent *));
#ifndef _REENT_ONLY #ifndef _REENT_ONLY
#if defined(__DYNAMIC_REENT__) && !defined(__SINGLE_THREAD__) #if defined(__DYNAMIC_REENT__) && !defined(__SINGLE_THREAD__)
#ifndef __getreent
struct _reent * _EXFUN(__getreent, (void)); struct _reent * _EXFUN(__getreent, (void));
#endif
# define _REENT (__getreent()) # define _REENT (__getreent())
#else /* __SINGLE_THREAD__ || !__DYNAMIC_REENT__ */ #else /* __SINGLE_THREAD__ || !__DYNAMIC_REENT__ */
# define _REENT _impure_ptr # define _REENT _impure_ptr

View File

@ -53,7 +53,9 @@ int _EXFUN(fchown, (int __fildes, uid_t __owner, gid_t __group ));
pid_t _EXFUN(fork, (void )); pid_t _EXFUN(fork, (void ));
long _EXFUN(fpathconf, (int __fd, int __name )); long _EXFUN(fpathconf, (int __fd, int __name ));
int _EXFUN(fsync, (int __fd)); int _EXFUN(fsync, (int __fd));
#ifndef __CYGWIN__
int _EXFUN(fdatasync, (int __fd)); int _EXFUN(fdatasync, (int __fd));
#endif
char _EXFUN(*getcwd, (char *__buf, size_t __size )); char _EXFUN(*getcwd, (char *__buf, size_t __size ));
#if defined(__CYGWIN__) #if defined(__CYGWIN__)
int _EXFUN(getdomainname ,(char *__name, size_t __len)); int _EXFUN(getdomainname ,(char *__name, size_t __len));