From 2ad8d17a1671582523ee4ce0a5d84f6a95425c30 Mon Sep 17 00:00:00 2001 From: Jeff Johnston Date: Tue, 22 Sep 2009 21:49:20 +0000 Subject: [PATCH] =?UTF-8?q?2009-09-22=20=20Ralf=20Cors=C3=A9pius=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * libc/include/stdlib.h: Add posix_memalign. --- newlib/ChangeLog | 4 ++++ newlib/libc/include/stdlib.h | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/newlib/ChangeLog b/newlib/ChangeLog index adcd6fad6..c3f459626 100644 --- a/newlib/ChangeLog +++ b/newlib/ChangeLog @@ -1,3 +1,7 @@ +2009-09-22 Ralf Corsépius + + * libc/include/stdlib.h: Add posix_memalign. + 2009-09-22 Ralf Corsépius * configure.host (*-rtems*): Remove -DMISSING_SYSCALL_NAMES. diff --git a/newlib/libc/include/stdlib.h b/newlib/libc/include/stdlib.h index 9dcd5e251..ed39546ee 100644 --- a/newlib/libc/include/stdlib.h +++ b/newlib/libc/include/stdlib.h @@ -189,6 +189,10 @@ int _EXFUN(unsetenv,(const char *__string)); int _EXFUN(_unsetenv_r,(struct _reent *, const char *__string)); #endif +#ifdef __rtems__ +int _EXFUN(posix_memalign,(void **, size_t, size_t)); +#endif + #endif /* ! __STRICT_ANSI__ */ char * _EXFUN(_dtoa_r,(struct _reent *, double, int, int, int *, int*, char**));