summaryrefslogtreecommitdiff
path: root/libc/stdlib/malloc-simple/alloc.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-simple/alloc.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-simple/alloc.c')
-rw-r--r--libc/stdlib/malloc-simple/alloc.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/libc/stdlib/malloc-simple/alloc.c b/libc/stdlib/malloc-simple/alloc.c
index a3c068a5b..3baf75fdd 100644
--- a/libc/stdlib/malloc-simple/alloc.c
+++ b/libc/stdlib/malloc-simple/alloc.c
@@ -25,13 +25,7 @@ void *malloc(size_t size)
void *result;
if (unlikely(size == 0)) {
-#if defined(__MALLOC_GLIBC_COMPAT__)
size++;
-#else
- /* Some programs will call malloc (0). Lets be strict and return NULL */
- __set_errno(ENOMEM);
- return NULL;
-#endif
}
#ifdef __ARCH_USE_MMU__