Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Dessent <brian@dessent.net>2007-09-08 14:51:37 +0400
committerBrian Dessent <brian@dessent.net>2007-09-08 14:51:37 +0400
commit1515ce296a2d3b6b9f2a0c33709dc05a89d5fdd0 (patch)
tree690734afc21c0546ab4ec8b306dea08dea383600
parente5ae72300ff7b25649ae537917d35668cad50037 (diff)
* include/cygwin/config.h: Conditionalize inline __getreent()
definition on _COMPILING_NEWLIB.
-rw-r--r--winsup/cygwin/ChangeLog5
-rw-r--r--winsup/cygwin/include/cygwin/config.h2
2 files changed, 7 insertions, 0 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index d100a1574..db451fb35 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -1,3 +1,8 @@
+2007-09-08 Brian Dessent <brian@dessent.net>
+
+ * include/cygwin/config.h: Conditionalize inline __getreent()
+ definition on _COMPILING_NEWLIB.
+
2007-09-06 Brian Dessent <brian@dessent.net>
* include/cygwin/config.h (__getreent): Define inline version.
diff --git a/winsup/cygwin/include/cygwin/config.h b/winsup/cygwin/include/cygwin/config.h
index 0c2f157f8..f0f1c8aa8 100644
--- a/winsup/cygwin/include/cygwin/config.h
+++ b/winsup/cygwin/include/cygwin/config.h
@@ -37,9 +37,11 @@ extern "C" {
compute these offsets already exists for the sake of gendef so
we might as well just use it here. */
+#ifdef _COMPILING_NEWLIB
#include "../tlsoffsets.h"
extern char *_tlsbase __asm__ ("%fs:4");
#define __getreent() (struct _reent *)(_tlsbase + tls_local_clib)
+#endif /* _COMPILING_NEWLIB */
#define __FILENAME_MAX__ (260 - 1 /* NUL */)
#define _READ_WRITE_RETURN_TYPE _ssize_t