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:
authorJeff Johnston <jjohnstn@redhat.com>2003-06-21 03:57:48 +0400
committerJeff Johnston <jjohnstn@redhat.com>2003-06-21 03:57:48 +0400
commit8266e478d66f551e471e94a25de35db9f8f5e4c0 (patch)
tree93889b2a0b69900d38549bb2e3bcda366aea14a0 /newlib/libc/sys/linux/malloc.c
parenta49a74108c573699f1b61e2c437ddce1e6db607d (diff)
2003-06-20 Jeff Johnston <jjohnstn@redhat.com>
* libc/include/sys/reent.h (_REENT_INIT_PTR): Fix macros to handle latest on_exit change. * libc/sys/linux/Makefile.am: Remove special compilation for malloc.c and mcheck.c. * libc/sys/linux/Makefile.in: Regenerated. * libc/sys/linux/mntent.c: Add definition of _LIBC flag after including <features.h>. * libc/sys/linux/mcheck.c: Ditto. * libc/sys/linux/malloc.c: Ditto plus define _GNU_SOURCE for <features.h>. * libc/sys/linux/intl/Makefile.am: Remove -D_LIBC and add -DNOT_IN_libc to C flags. * libc/sys/linux/intl/Makefile.in: Regenerated. * libc/sys/linux/intl/config.h: Add definition of _LIBC. * libc/sys/linux/linuxthreads/semaphore.h: Include <bits/pthreadtypes.h>. * libc/sys/linux/sys/dirent.h: Define _LIBC and NOT_IN_libc after including <features.h>. * libc/sys/linux/sys/lock.h: Ditto.
Diffstat (limited to 'newlib/libc/sys/linux/malloc.c')
-rw-r--r--newlib/libc/sys/linux/malloc.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/newlib/libc/sys/linux/malloc.c b/newlib/libc/sys/linux/malloc.c
index ecebb369c..25007e889 100644
--- a/newlib/libc/sys/linux/malloc.c
+++ b/newlib/libc/sys/linux/malloc.c
@@ -302,6 +302,11 @@
#endif
#endif /*Void_t*/
+#define _GNU_SOURCE
+#include <features.h>
+#define _LIBC 1
+#define NOT_IN_libc 1
+
#if __STD_C
# include <stddef.h> /* for size_t */
# if defined _LIBC || defined MALLOC_HOOKS