Applied patch from linux.

This patch should fix the compiler problem on linux.