libc: Fix build with -DNS_REREAD_CONF.
MFC after: 3 days
(cherry picked from commit 62ed2d0152dce6da883fef753e0995e6d85e0cf1)