summaryrefslogtreecommitdiff
path: root/libc/stdlib/malloc-standard/malloc.c
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2016-12-20 20:51:59 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2016-12-20 20:51:59 +0100
commit013f366f501c928315cc2893f0f2348c8956d09e (patch)
treeca8638f4b96ef47e4b4bb7a5aaa59e86400f33bc /libc/stdlib/malloc-standard/malloc.c
parent9ff01fc11a5d10108a10655b1751aa406aedae0a (diff)
remove __MALLOC_GLIBC_COMPAT__ option
This option is enabled for a long time and I see no useful case where we should be incompatible to glibc here.
Diffstat (limited to 'libc/stdlib/malloc-standard/malloc.c')
-rw-r--r--libc/stdlib/malloc-standard/malloc.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/libc/stdlib/malloc-standard/malloc.c b/libc/stdlib/malloc-standard/malloc.c
index fd33b50c7..309f52859 100644
--- a/libc/stdlib/malloc-standard/malloc.c
+++ b/libc/stdlib/malloc-standard/malloc.c
@@ -825,13 +825,6 @@ void* malloc(size_t bytes)
void * sysmem;
void * retval;
-#if !defined(__MALLOC_GLIBC_COMPAT__)
- if (!bytes) {
- __set_errno(ENOMEM);
- return NULL;
- }
-#endif
-
/*
Convert request size to internal form by adding (sizeof(size_t)) bytes
overhead plus possibly more to obtain necessary alignment and/or