I will ask for two things. Please, add ID: 474 - <description> to commit message. Second, indent #include inside #ifdef blocks with one white-space eg. #include <stdlib.h>. Other than that, I agree with the proposed patch.
Thank you very much.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The patch above also fixes build failure on maOS.
macOS does have
malloc.h, but it's in amallocsubdirectory (so/usr/include/malloc/malloc.h), and it's possible to#include <malloc/malloc.h>.In fact, the patch above seems to be overkill because just deleting the
#include <malloc.h>lets it build as well.The build failure is
A full build log is here: https://gist.github.com/ilovezfs/4549a99661f303afd91a3544af39653c
Let me ask a different question. Which OS-es don't have
malloc()in<stdlib.h>? I'd rather go with#include <stdlib.h>instead of the proposed patch.Thanks.
I don't know answer for this question. I work with FreeBSD only. You must read ilovezfs comment too.
Hello,
I will ask for two things. Please, add
ID: 474 - <description>to commit message. Second, indent#includeinside#ifdefblocks with one white-space eg.#include <stdlib.h>. Other than that, I agree with the proposed patch.Thank you very much.
As you wish.
Just to let you know, I have modified indent a bit, but the patch is in. Thank you.