1
0

200-musl-compat.patch 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. --- a/configure
  2. +++ b/configure
  3. @@ -4155,44 +4155,6 @@ fi
  4. rm -f conftest*
  5. -oldlibs="$LIBS"
  6. -LIBS="$LIBS -lelf"
  7. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking SVR4..." >&5
  8. -$as_echo "$as_me: checking SVR4..." >&6;}
  9. -cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10. -/* end confdefs.h. */
  11. -#include <utmpx.h>
  12. -
  13. -int
  14. -main ()
  15. -{
  16. -
  17. - ;
  18. - return 0;
  19. -}
  20. -_ACEOF
  21. -if ac_fn_c_try_link "$LINENO"; then :
  22. - ac_fn_c_check_header_mongrel "$LINENO" "dwarf.h" "ac_cv_header_dwarf_h" "$ac_includes_default"
  23. -if test "x$ac_cv_header_dwarf_h" = xyes; then :
  24. - $as_echo "#define SVR4 1" >>confdefs.h
  25. - $as_echo "#define BUGGYGETLOGIN 1" >>confdefs.h
  26. -
  27. -else
  28. - ac_fn_c_check_header_mongrel "$LINENO" "elf.h" "ac_cv_header_elf_h" "$ac_includes_default"
  29. -if test "x$ac_cv_header_elf_h" = xyes; then :
  30. - $as_echo "#define SVR4 1" >>confdefs.h
  31. - $as_echo "#define BUGGYGETLOGIN 1" >>confdefs.h
  32. -
  33. -fi
  34. -
  35. -
  36. -fi
  37. -
  38. -
  39. -
  40. -else
  41. - LIBS="$oldlibs"
  42. -fi
  43. rm -f core conftest.err conftest.$ac_objext \
  44. conftest$ac_exeext conftest.$ac_ext
  45. for ac_header in stropts.h string.h strings.h
  46. --- a/utmp.c
  47. +++ b/utmp.c
  48. @@ -33,6 +33,7 @@
  49. #include "config.h"
  50. #include "screen.h"
  51. #include "extern.h"
  52. +#include "os.h"
  53. #ifdef HAVE_UTEMPTER
  54. #include <utempter.h>