002-darwin_compile_fix.patch 344 B

12345678910111213
  1. --- a/include/libbb.h
  2. +++ b/include/libbb.h
  3. @@ -83,7 +83,10 @@
  4. extern char **environ;
  5. /* Set the group set for the current user to GROUPS (N of them). */
  6. +#if !defined(__APPLE__)
  7. int setgroups(size_t n, const gid_t *groups);
  8. +#endif
  9. +
  10. #if defined(__GLIBC__) && __GLIBC__ < 2
  11. int vdprintf(int d, const char *format, va_list ap);
  12. #endif