Skip to content

fatal error: 'sys/prctl.h' file not found on Mac os #1920

@ahaha-zhang

Description

@ahaha-zhang

Hi team:
I meet with a compile error which is related to google code dumper on Max os. "sys/prctl.h" seems linux specified. Is there any way to bypass?
proxysql version:v2.0.2
os version:Mojave 10.14.1

libtool: compile: cc -DHAVE_CONFIG_H -I. -I./src -I./src -fno-omit-frame-pointer -fno-strict-aliasing -g -O2 -MT src/thread_lister.lo -MD -MP -MF src/.deps/thread_lister.Tpo -c src/thread_lister.c -fno-common -DPIC -o src/.libs/thread_lister.o
src/thread_lister.c:35:10: fatal error: 'sys/prctl.h' file not found
#include <sys/prctl.h>
^~~~~~~~~~~~~
1 error generated.
make[2]: *** [src/thread_lister.lo] Error 1
make[1]: *** [google-coredumper/google-coredumper/.libs/libcoredumper.a] Error 2
make: *** [build_deps] Error 2

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