bits.cpp: In function ‘void load_oldbits()’:
bits.cpp:145:28: error: ‘unlink’ was not declared in this scope

I am trying to compile it on a machine using the latest version of Lubuntu. Does anyone have a fix for this, or can you tell me what my first step in fixing this should be? Thank you in advance for your help!

So if I take out the if statement and just include unistd.h maybe it will work, except I get the same error in other files so I am going to have to grep for unlink and make the change in all those files. Is this correct?

EDIT: Okay I tried this, and I only needed to #include<unistd.h> in two other files, pfiles.cpp, and db.cpp, and it compiles. I still get a bunch of warnings, but I will look at those later I suppose. I hope this helps.