Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#5 patch for freebsd support

open
nobody
None
5
2012-09-17
2009-08-22
Peter De Wachter
No

Kiki uses the getdirentries function in KFileTools:

long basep;
while ((bytesRead = getdirentries(fd, entry, sb.st_blksize, &basep))

However, getdirentries' fourth argument is actually a pointer to off_t:

ssize_t getdirentries(int fd, char buf, size_t nbytes , off_t basep);

and on FreeBSD, off_t is always a 64-bit integer, even on 32-bit systems. This causes kiki to fail to compile.

The fix is trivial: just change the type of basep. Patch attached.

Discussion

  • patch

     
    Attachments