samba-getgrouplist.patch 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. --- a/source/configure.in 2009-04-01 13:48:54.000000000 +0200
  2. +++ b/source/configure.in 2009-04-20 13:08:42.000000000 +0200
  3. @@ -1219,38 +1219,6 @@
  4. AC_DEFINE(HAVE_PRCTL, 1, [Whether prctl is available]),[])
  5. #
  6. -#
  7. -#
  8. -case "$host_os" in
  9. - *linux*)
  10. - # glibc <= 2.3.2 has a broken getgrouplist
  11. - AC_TRY_RUN([
  12. -#include <unistd.h>
  13. -#include <sys/utsname.h>
  14. -main() {
  15. - /* glibc up to 2.3 has a broken getgrouplist */
  16. -#if defined(__GLIBC__) && defined(__GLIBC_MINOR__)
  17. - int libc_major = __GLIBC__;
  18. - int libc_minor = __GLIBC_MINOR__;
  19. -
  20. - if (libc_major < 2)
  21. - exit(1);
  22. - if ((libc_major == 2) && (libc_minor <= 3))
  23. - exit(1);
  24. -#endif
  25. - exit(0);
  26. -}
  27. -], [linux_getgrouplist_ok=yes], [linux_getgrouplist_ok=no])
  28. - if test x"$linux_getgrouplist_ok" = x"yes"; then
  29. - AC_DEFINE(HAVE_GETGROUPLIST, 1, [Have good getgrouplist])
  30. - fi
  31. - ;;
  32. - *)
  33. - AC_CHECK_FUNCS(getgrouplist)
  34. - ;;
  35. -esac
  36. -
  37. -#
  38. # stat64 family may need <sys/stat.h> on some systems, notably ReliantUNIX
  39. #