]> xenbits.xensource.com Git - unikraft/libs/newlib.git/commit
patches: Allow including custom malloc.h headers
authorCostin Lupu <costin.lupu@cs.pub.ro>
Thu, 22 Aug 2019 10:10:56 +0000 (13:10 +0300)
committerCostin Lupu <costin.lupu@cs.pub.ro>
Mon, 26 Aug 2019 13:50:14 +0000 (16:50 +0300)
commit6c8446ff0e36e20c995a1aace0c9e0becf73e473
treed39b0eba4066f21e1fa15e48d792e9b150fdcccb
parent7e3b8e1e8e1d19b93e1f92b99835c6f0358f8cad
patches: Allow including custom malloc.h headers

We found this while porting Go runtime. The libgo library had its own malloc.h
header which it tried to include, but because of global include paths it
included the malloc.h of newlib. We workaround this by defining
_INCLUDE_MALLOC_H_ guard before including newlib's malloc.h and including our
own malloc.h next.

Signed-off-by: Costin Lupu <costin.lupu@cs.pub.ro>
Reviewed-by: Charalampos Mainas <charalampos.mainas@neclab.eu>
patches/0008-Apply-hackish-patch-in-order-to-include-custom-mallo.patch [new file with mode: 0644]