libreplace: Only check for malloc.h if needed
authorVolker Lendecke <vl@samba.org>
Mon, 30 Jun 2014 13:46:21 +0000 (15:46 +0200)
committerVolker Lendecke <vl@samba.org>
Thu, 19 Nov 2015 06:01:09 +0000 (07:01 +0100)
commit5f6c4fa4860f794d25f1fcc2e557ca81cbe90183
tree1621a361611c2da7e9d490274d8c4b112a9656d6
parentb64f24971c5930ff382af6f69ab1fd84b4024fbf
libreplace: Only check for malloc.h if needed

OpenBSD complains that malloc.h is deprecated on every gcc invocation.
That hides a lot of real warnings. malloc and friends nowadays are
typically defined in stdlib.h, only check there.

We need memalign. On OpenBSD this does not exist, so libreplace replaces
it. The wscript test in libreplace only checks whether memalign can
link. Unfortunately in glibc memalign comes from malloc.h.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
lib/replace/wscript