u_int32_t undeclared

`u_int32_t' undeclared (first use in this function)

というエラーが出た

#include <sys/types.h>

で解決