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