100-cross_compile_fix.patch 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. --- a/configure
  2. +++ b/configure
  3. @@ -414,7 +414,7 @@ as_fn_error ()
  4. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  5. fi
  6. $as_echo "$as_me: error: $2" >&2
  7. - as_fn_exit $as_status
  8. + # as_fn_exit $as_status
  9. } # as_fn_error
  10. if expr a : '\(a\)' >/dev/null 2>&1 &&
  11. @@ -5942,8 +5942,6 @@ else
  12. fi
  13. rm -f core conftest.err conftest.$ac_objext \
  14. conftest$ac_exeext conftest.$ac_ext
  15. -test -f /lib/libsec.a || test -f /usr/lib/libsec.a && LIBS="$LIBS -lsec"
  16. -test -f /lib/libshadow.a || test -f /usr/lib/libshadow.a && LIBS="$LIBS -lshadow"
  17. oldlibs="$LIBS"
  18. LIBS="$LIBS -lsun"
  19. { $as_echo "$as_me:${as_lineno-$LINENO}: checking IRIX sun library..." >&5
  20. @@ -7024,7 +7022,7 @@ as_fn_error ()
  21. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  22. fi
  23. $as_echo "$as_me: error: $2" >&2
  24. - as_fn_exit $as_status
  25. + # as_fn_exit $as_status
  26. } # as_fn_error
  27. --- a/pty.c
  28. +++ b/pty.c
  29. @@ -39,9 +39,9 @@
  30. #endif
  31. /* for solaris 2.1, Unixware (SVR4.2) and possibly others */
  32. -#ifdef HAVE_STROPTS_H
  33. -# include <sys/stropts.h>
  34. -#endif
  35. +//#ifdef HAVE_STROPTS_H
  36. +//# include <sys/stropts.h>
  37. +//#endif
  38. #if defined(sun) && defined(LOCKPTY) && !defined(TIOCEXCL)
  39. # include <sys/ttold.h>
  40. --- a/sched.h
  41. +++ b/sched.h
  42. @@ -27,6 +27,11 @@
  43. * $Id$ GNU
  44. */
  45. +#ifndef __SCHED_H
  46. +#define __SCHED_H
  47. +
  48. +#include <sys/time.h>
  49. +
  50. struct event
  51. {
  52. struct event *next;
  53. @@ -46,3 +51,5 @@ struct event
  54. #define EV_READ 1
  55. #define EV_WRITE 2
  56. #define EV_ALWAYS 3
  57. +
  58. +#endif