summaryrefslogtreecommitdiff
path: root/libc/include/bsd/stdlib.h
diff options
context:
space:
mode:
Diffstat (limited to 'libc/include/bsd/stdlib.h')
-rw-r--r--libc/include/bsd/stdlib.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/libc/include/bsd/stdlib.h b/libc/include/bsd/stdlib.h
new file mode 100644
index 0000000..20d34f9
--- /dev/null
+++ b/libc/include/bsd/stdlib.h
@@ -0,0 +1,12 @@
+/* some things shouldn't be macros, get out your barf bag */
+
+#ifndef _BSD_STDLIB_H
+#define _BSD_STDLIB_H
+
+#undef __MALLOC_0_RETURNS_NULL
+#define __MALLOC_0_RETURNS_NULL
+#include_next <stdlib.h>
+#undef atoi
+#undef atol
+
+#endif /* _BSD_STDLIB_H */