I am make a program for a raspberry pi running Arch Linux. I need to set the size of a shared memory file. So I use ftruncate. But when I compile it, I get 'ftruncate’ was not declared in this scope. I have included unistd.h. I know its something stupid, I just can't figure it out. In case it matters, I am using the g++ compiler.