the code in source/test/os2_delete.c is duplicated and will never compile. Thus, the "broken readdir()" detection itself is broken.
I'm using samba 3.0.28 and conforming this bug (bug?)... Maybe deleting the duplicated codes is the simplest solution? Am I correct? if so... I will try to motify it and provide a patch for this bug... Regard by Luen-Yung