backporting to older C style to fox the kernel build