Update compat.c

Unsigned long typedef.