Fix r267788 build on stable/9.

(cherry picked from commit d3da9599c13304ac419db25dfc76ad957939c1d9)
(cherry picked from commit 6e02471ceeb9aee9fa5ffc1557d6bc01a5d1baba)