Page 1 of 1

Compile fails because 'malloc.h' is replaced by 'stdlib.h'

Posted: Wed Dec 06, 2017 4:41 am
by tps800
Description of problem or question

Compile fails because 'malloc.h' is replaced by 'stdlib.h'

Steps to reproduce the problem (If Applicable)

'malloc.h' does not exist any more, but points you to include 'stdlib.h' instead.

HandBrake version (e.g., 1.0.0)

trunc

Operating system and version (e.g., Ubuntu 16.04 LTS, macOS 10.3 High Sierra, Windows 10 Creators Update)

* Ubuntu 17.10
* FreeBSD 11.1

Error message text or screenshot (If Applicable)

Code: Select all

In file included from ../libhb/fifo.c:16:0:                            
/usr/include/malloc.h:3:2: error: #error "<malloc.h> has been replaced by <stdlib.h>"                                                         
 #error "<malloc.h> has been replaced by <stdlib.h>"                   

Re: Compile fails because 'malloc.h' is replaced by 'stdlib.h'

Posted: Thu Dec 07, 2017 9:53 pm
by BradleyS
This was also fixed for FreeBSD as part of viewtopic.php?p=175432#p175432