netsnmp.patch 1.2 KB

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