- (many): Patch from Niels Baggesen to fix various things, mostly on linux.
git-svn-id: file:///home/hardaker/lib/sf-bkups/net-snmp-convert-svnrepo/trunk@797 06827809-a52a-0410-b366-d66718629ded
diff --git a/agent/mibgroup/errormib.c b/agent/mibgroup/errormib.c
index 6c7f96a..eb1d089 100644
--- a/agent/mibgroup/errormib.c
+++ b/agent/mibgroup/errormib.c
@@ -11,6 +11,16 @@
#endif
#include <signal.h>
#include <nlist.h>
+#if TIME_WITH_SYS_TIME
+# include <sys/time.h>
+# include <time.h>
+#else
+# if HAVE_SYS_TIME_H
+# include <sys/time.h>
+# else
+# include <time.h>
+# endif
+#endif
#if HAVE_MACHINE_PARAM_H
#include <machine/param.h>
#endif