netsnmp.patch 1.2 KB

123456789101112131415161718192021222324252627282930313233
  1. diff -urN net-snmp-5.1-dist/agent/mibgroup/host/hr_system.c net-snmp-5.1/agent/mibgroup/host/hr_system.c
  2. --- net-snmp-5.1-dist/agent/mibgroup/host/hr_system.c 2004-02-22 17:29:34.000000000 +0000
  3. +++ net-snmp-5.1/agent/mibgroup/host/hr_system.c 2005-05-27 15:15:52.363982808 +0100
  4. @@ -603,7 +603,11 @@
  5. current user */
  6. if (kill(utmp_p->ut_pid, 0) == -1 && errno == ESRCH) {
  7. utmp_p->ut_type = DEAD_PROCESS;
  8. - pututline(utmp_p);
  9. +#if HAVE_UTMPX_H
  10. + pututxline(utmp_p);
  11. +#else
  12. + pututline(utmp_p);
  13. +#endif
  14. continue;
  15. }
  16. #endif
  17. diff -urN net-snmp-5.1-dist/configure.in net-snmp-5.1/configure.in
  18. --- net-snmp-5.1-dist/configure.in 2004-03-31 21:59:14.000000000 -0600
  19. +++ net-snmp-5.1/configure.in 2004-03-31 22:06:05.000000000 -0600
  20. @@ -1865,13 +1865,8 @@
  21. if test $cross_compiling = yes; then
  22. if test $with_endianness = "big"; then
  23. AC_DEFINE(WORDS_BIGENDIAN)
  24. - elif test -z $with_endianness; then
  25. - AC_MSG_ERROR([You are cross-compiling, but you have not specified the target's endianness])
  26. fi
  27. else
  28. - if test $with_endianness; then
  29. - AC_MSG_ERROR([Endianness has been specified, but you are not cross-compiling.])
  30. - fi
  31. AC_C_BIGENDIAN
  32. fi