summaryrefslogtreecommitdiffstats
path: root/newlib/libc/include/sys/reent.h
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2004-02-09 02:22:01 +0000
committerChristopher Faylor <me@cgf.cx>2004-02-09 02:22:01 +0000
commit733309f5761d777a61b8db86e734fbffc236f104 (patch)
treebb3cb40554b815191e9372fd10de17ffa0a24b01 /newlib/libc/include/sys/reent.h
parent6946073e784471e1fc51fffd705b0cbc4d58e730 (diff)
downloadcygnal-733309f5761d777a61b8db86e734fbffc236f104.tar.gz
cygnal-733309f5761d777a61b8db86e734fbffc236f104.tar.bz2
cygnal-733309f5761d777a61b8db86e734fbffc236f104.zip
* 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__.
Diffstat (limited to 'newlib/libc/include/sys/reent.h')
-rw-r--r--newlib/libc/include/sys/reent.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/newlib/libc/include/sys/reent.h b/newlib/libc/include/sys/reent.h
index e783e842e..fa19a2980 100644
--- a/newlib/libc/include/sys/reent.h
+++ b/newlib/libc/include/sys/reent.h
@@ -736,7 +736,9 @@ void _reclaim_reent _PARAMS ((struct _reent *));
#ifndef _REENT_ONLY
#if defined(__DYNAMIC_REENT__) && !defined(__SINGLE_THREAD__)
+#ifndef __getreent
struct _reent * _EXFUN(__getreent, (void));
+#endif
# define _REENT (__getreent())
#else /* __SINGLE_THREAD__ || !__DYNAMIC_REENT__ */
# define _REENT _impure_ptr