maintainer-feedback requested: [Bug 231765] graphics/wayland: fix build with mips, mips64, powerpc64

[email protected]
Newsgroups gmane.os.freebsd.devel.x11
Message-ID <[email protected]/bugzilla/>
Bugzilla Automation <[email protected]> has asked freebsd-x11 mailing list
<[email protected]> for maintainer-feedback:
Bug 231765: graphics/wayland: fix build with mips, mips64, powerpc64
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=231765



--- Description ---
prctl() function currently doesn't exist in FreeBSD. When compiling with clang
on amd64, only a warning is emitted when this function is used:
tests/test-runner.c:349:8: warning: implicit declaration of function 'prctl' is
invalid in C99 [-Wimplicit-function-declaration]
		rc = prctl(PR_SET_PTRACER, pid);
		     ^
tests/test-runner.c:349:8: warning: this function declaration is not a
prototype [-Wstrict-prototypes]

But when compiling with base GCC (as is on e.g. powerpc64), I'm getting error:
./.libs/libtest-runner.a(test-runner.o): In function `is_debugger_attached':
/tmp/usr/local/poudriere/ports/default/graphics/wayland/work/wayland-1.14.0/tes
ts/test-runner.c:349:
undefined reference to `prctl'

Since it doesn't work even on amd64 properly (even though it compiles), let's
remove this reference.

Tested on amd64 and powerpc64.

Hardware sponsored by IntegriCloud.
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-x11
To unsubscribe, send any mail to "[email protected]"
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.