Use prepended modules instead of undef
for OS-specific code
#18305
+241
−193
undef
for OS-specific code
#18305