Use sys/limits.h in the kernel, not limits.h.