Whoops, I included sys/types in the wrong file.