summaryrefslogtreecommitdiffstats
path: root/cpukit/libcsupport/src/_free_r.c
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/libcsupport/src/_free_r.c')
-rw-r--r--cpukit/libcsupport/src/_free_r.c29
1 files changed, 29 insertions, 0 deletions
diff --git a/cpukit/libcsupport/src/_free_r.c b/cpukit/libcsupport/src/_free_r.c
new file mode 100644
index 0000000000..9b3eb5c285
--- /dev/null
+++ b/cpukit/libcsupport/src/_free_r.c
@@ -0,0 +1,29 @@
+/*
+ * _free_r Implementation
+ *
+ * COPYRIGHT (c) 1989-2007.
+ * On-Line Applications Research Corporation (OAR).
+ *
+ * The license and distribution terms for this file may be
+ * found in the file LICENSE in this distribution or at
+ * http://www.rtems.com/license/LICENSE.
+ *
+ * $Id$
+ */
+
+#if HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#if defined(RTEMS_NEWLIB) && !defined(HAVE__FREE_R)
+#include <sys/reent.h>
+#include <stdlib.h>
+
+void _free_r(
+ struct _reent *ignored __attribute__((unused)),
+ void *ptr
+)
+{
+ free( ptr );
+}
+#endif