summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--newlib/ChangeLog4
-rw-r--r--newlib/libc/locale/locale.c3
2 files changed, 6 insertions, 1 deletions
diff --git a/newlib/ChangeLog b/newlib/ChangeLog
index 08d0421f6..c8876719d 100644
--- a/newlib/ChangeLog
+++ b/newlib/ChangeLog
@@ -1,3 +1,7 @@
+2009-05-13 Corinna Vinschen <corinna@vinschen.de>
+
+ * libc/locale/locale.c (setlocale): Don't build on Cygwin.
+
2009-05-11 Craig Howland <howland@LGSInnovations.com>
* libm/machine/i386/f_llrint.c: Remove llrint() definition.
diff --git a/newlib/libc/locale/locale.c b/newlib/libc/locale/locale.c
index b5a0ee74c..444a5aca8 100644
--- a/newlib/libc/locale/locale.c
+++ b/newlib/libc/locale/locale.c
@@ -654,6 +654,7 @@ _DEFUN(_localeconv_r, (data),
#ifndef _REENT_ONLY
+#ifndef __CYGWIN__
char *
_DEFUN(setlocale, (category, locale),
int category _AND
@@ -661,7 +662,7 @@ _DEFUN(setlocale, (category, locale),
{
return _setlocale_r (_REENT, category, locale);
}
-
+#endif
struct lconv *
_DEFUN_VOID(localeconv)