Move the getdomainname() declaration to <unistd.h>.