]> git.ipfire.org Git - thirdparty/systemd.git/commit - meson.build
meson: when pivot_root() is added one day, look for it in <unistd.h>
authorLennart Poettering <lennart@poettering.net>
Mon, 25 Dec 2017 11:07:40 +0000 (12:07 +0100)
committerLennart Poettering <lennart@poettering.net>
Mon, 25 Dec 2017 11:10:22 +0000 (12:10 +0100)
commit3c042add1db8948d7ed03be701fe097529785e77
tree780993f79cb2b96200bcb66c9e2e953092eb4dfc
parent85db59b794d1ca7f16ea816c916bb4472958cc1b
meson: when pivot_root() is added one day, look for it in <unistd.h>

We of course don't know in which header glibc will export pivot_root()
and if it ever will. But there's a good chance they'll place it where
chroot() is located, given the similarity in the operations, hence let's
try our luck and look for it at the same place.

If we are lucky this means we don't have to patch our code if glibc
decides to expose the call one day.
meson.build