Changeset 13715


Ignore:
Timestamp:
Dec 29, 2012, 12:08:46 PM (8 years ago)
Author:
jordan
Message:

(trunk, libT) #3833 'freespace rpc' 0001-Fix-FTBFS-for-OS-X-and-uClibc.patch

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/platform.c

    r13714 r13715  
    837837
    838838#if defined(__FreeBSD__) || defined(SYS_DARWIN)
    839   if (quotactl(device, QCMD(Q_GETQUOTA, USRQUOTA), getuid(), &dq) == 0)
     839  if (quotactl(device, QCMD(Q_GETQUOTA, USRQUOTA), getuid(), (caddr_t) &dq) == 0)
    840840#else
    841841  if (quotactl(QCMD(Q_GETQUOTA, USRQUOTA), device, getuid(), (caddr_t) &dq) == 0)
     
    856856          return -1;
    857857        }
    858 #if defined(__FreeBSD__) || defined(SYS_DARWIN)
    859       spaceused = (int64_t) dqb_curblocks >> 1;
     858#if defined(__FreeBSD__)
     859      spaceused = (int64_t) dq.dqb_curblocks >> 1;
     860#elif defined(SYS_DARWIN)
     861      spaceused = (int64_t) dq.dqb_curbytes >> 1;
     862#elif defined(__UCLIBC__)
     863      spaceused = (int64_t) btodb(dq.dqb_curblocks);
    860864#else
    861865      spaceused = btodb(dq.dqb_curspace);
Note: See TracChangeset for help on using the changeset viewer.