Skip to content

Trying to make on macOS with gcc fails to find malloc.h #1

@sodiumnitrate

Description

@sodiumnitrate

I'm trying to compile this on macOS (11.5.2) but it's searching for and failing to find malloc.h:

xdrf-master make
m4 conf/linux.m4 libxdrf.m4 > libxdrf.c
gcc -O -Dlinux -c libxdrf.c
libxdrf.c:153:10: fatal error: 'malloc.h' file not found
#include <malloc.h>
^~~~~~~~~~
1 error generated.
make: *** [libxdrf.o] Error 1

My understanding is that malloc.h is deprecated and including stdlib.h for malloc is sufficient. Is there a workaround that would let me compile this? Or am I missing something?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions