mariadb: devel compilation fix.

Closes #24838.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>