daemon: fix build on 10.10

Fixes#33041.