0014-uClibc_no_loadavg.patch 527 B

123456789101112131415
  1. --- diskdev_cmds-332.25/newfs_hfs.tproj/makehfs.c 2015-03-27 21:58:04.163171675 -0700
  2. +++ hfsprogs-332.25/newfs_hfs.tproj/makehfs.c 2015-03-27 21:56:03.687175020 -0700
  3. @@ -2119,10 +2119,12 @@
  4. sysctl(mib, 2, sysctlstring, &datalen, NULL, 0);
  5. SHA1_Update(&context, sysctlstring, datalen);
  6. #endif
  7. +#ifndef __UCLIBC__
  8. /* The system's load average: */
  9. datalen = sizeof(sysloadavg);
  10. getloadavg(sysloadavg, 3);
  11. SHA1_Update(&context, &sysloadavg, datalen);
  12. +#endif
  13. /* The system's VM statistics: */
  14. #if !LINUX