ntp: fix build for no-MMU with libcap
authorBaruch Siach <baruch@tkos.co.il>
Sat, 13 Oct 2018 18:51:00 +0000 (21:51 +0300)
committerPeter Korsgaard <peter@korsgaard.com>
Sat, 13 Oct 2018 21:15:44 +0000 (23:15 +0200)
commit7cf152852dd0b4bf30659e3e62d891171f1e4aa5
tree4eb305260f415ce37ccb2570dcb7e7b5d0d9aeb0
parent0d1a6f152f3185e128fd122f05b81f8d0fb9e6fe
ntp: fix build for no-MMU with libcap

Commit 87d759ced5 (ntp: fix build for no-MMU) added a patch to make MMU
dependent code hidden behind HAVE_WORKING_FORK. It turns out that the
patch covers too much code. When libcap is enabled we pass
--enable-linuxcaps, which in turn enables HAVE_DROPROOT. This adds calls
to code that is covered by HAVE_WORKING_FORK.

Update the no-MMU fix so that HAVE_WORKING_FORK only covers the no-MMU
incompatible routine.

Fixes:
http://autobuild.buildroot.net/results/c5c/c5cf28bb969fec7c07864cdd094dedfa4d5439d2/

Cc: Artem Panfilov <apanfilov@spectracom.com>
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/ntp/0003-fix-nommu.patch