Insert an include in rpc/rpc.h #include<unistd.h>