sys/cdefs.h: fix for use __restrict in C++
PR: 272723
(cherry picked from commit 15876d9fd83fdfa7d541ea747eb40faeade975d2)