libdnet: fix deprecated macro

Fixes #16903.