This is the mail archive of the
cygwin-cvs@cygwin.com
mailing list for the Cygwin project.
[newlib-cygwin] Drop Cygwin-only posix_memalign prototype
- From: Corinna Vinschen <corinna at sourceware dot org>
- To: cygwin-cvs at sourceware dot org, newlib-cvs at sourceware dot org
- Date: 23 Mar 2016 10:50:35 -0000
- Subject: [newlib-cygwin] Drop Cygwin-only posix_memalign prototype
https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=3737bc4e98fa698bc094863bb890272d4979822d
commit 3737bc4e98fa698bc094863bb890272d4979822d
Author: Corinna Vinschen <corinna@vinschen.de>
Date: Wed Mar 23 11:50:27 2016 +0100
Drop Cygwin-only posix_memalign prototype
newlib:
* libc/include/stdlib.h (posix_memalign): Drop __rtmes__ guards.
cygwin:
* include/cygwin/stdlib.h (posix_memalign): Drop prototype.
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
Diff:
---
newlib/libc/include/stdlib.h | 2 --
winsup/cygwin/include/cygwin/stdlib.h | 3 ---
2 files changed, 5 deletions(-)
diff --git a/newlib/libc/include/stdlib.h b/newlib/libc/include/stdlib.h
index 7d4ae76..363b7df 100644
--- a/newlib/libc/include/stdlib.h
+++ b/newlib/libc/include/stdlib.h
@@ -251,11 +251,9 @@ int _EXFUN(unsetenv,(const char *__string));
int _EXFUN(_unsetenv_r,(struct _reent *, const char *__string));
#endif /* !__CYGWIN__ */
-#ifdef __rtems__
#if __POSIX_VISIBLE >= 200112
int _EXFUN(__nonnull (1) posix_memalign,(void **, size_t, size_t));
#endif
-#endif
char * _EXFUN(_dtoa_r,(struct _reent *, double, int, int, int *, int*, char**));
#ifndef __CYGWIN__
diff --git a/winsup/cygwin/include/cygwin/stdlib.h b/winsup/cygwin/include/cygwin/stdlib.h
index 01c5646..002a904 100644
--- a/winsup/cygwin/include/cygwin/stdlib.h
+++ b/winsup/cygwin/include/cygwin/stdlib.h
@@ -47,9 +47,6 @@ int getpt (void);
#if __XSI_VISIBLE >= 600
int posix_openpt (int);
#endif
-#if __POSIX_VISIBLE >= 200112
-int posix_memalign (void **, size_t, size_t);
-#endif
#ifdef _COMPILING_NEWLIB
#define unsetenv UNUSED_unsetenv