[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Please help with getting gimagereader build on *bsd - sys/prctl.h^M^J issue



Hi.


I uploaded a new version of gimagereader yesterday and it FTBFS[1] on kfreebsd
as sys/prctl.h is missing. The function prctl() is used here[2]. Can you give me
some hints how to fix this? Searching on the internet brought some insight but
didn't help me to propose a patch for upstream.

[2]
https://sources.debian.net/src/gimagereader/3.0.1-1/gtk/src/MainWindow.cc/#L70

It seems be linux specific, not unix specific.
So replace "#ifdef G_OS_UNIX" to
something like "#ifdef G_OS_LINUX" (given it exists),
or to "#ifdef __linux__"
or to "#ifdef PR_SET_PTRACER" otherwise.

Petr


Reply to: