(backport) capability: fix build without PR_CAP_AMBIENT
authorFabrice Fontaine <fontaine.fabrice@gmail.com>
Fri, 11 Jan 2019 15:07:00 +0000 (16:07 +0100)
committerŁukasz Stelmach <l.stelmach@samsung.com>
Thu, 25 Jan 2024 12:36:08 +0000 (13:36 +0100)
commit656923ff93382dd3eb356b5ca90644c8dfd32c48
treed15b796232da782463505da197f28e9c4f0c4b9a
parentd88ab3a322e8b4d64b8b60cf4aa2100842689cd8
(backport) capability: fix build without PR_CAP_AMBIENT

systemd fails to build on kernel without PR_CAP_AMBIENT (< 4.3) since
https://github.com/systemd/systemd/commit/2a03bb3e65327c73008f1db485ffc75c432dc6b2

To fix this error, include missing_prctl.h in all files using
PR_CAP_AMBIENT

Fixes:
 - http://autobuild.buildroot.org/results/699c078aa078240c6741da4dbd0871450ceeca92

Change-Id: I4b0f0af732fbb0e15d129c5fe8538c0785261415
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
src/basic/capability-util.c
src/test/test-capability.c
src/test/test-execute.c