unit your_lib;
// put the code below in your unit after reserverd word unit....;
{$IfNDef UNIX}
interface
implementation
end.
// if your os is not unix all code after "end." will ignored from compiler.
{$IfEnd}
// .. here is the normal code from your lib.