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