This is the same as https://sourceforge.net/p/mcrypt/bugs/36/, but you should not include malloc.h or malloc/malloc.h on any system; you should include stdlib.h on all systems.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
This patch is helped to build mcrypt binary in Mac OS by Homebrew.
For more details please see pull request into Homebrew repo.
This is the same as https://sourceforge.net/p/mcrypt/bugs/36/, but you should not include malloc.h or malloc/malloc.h on any system; you should include stdlib.h on all systems.