- (many) Fixes for Solaris (2.5) submitted by
Niels Baggesen <recnba@mediator.uni-c.dk>:
"Some are my own, others are from Yuri Rabover who originally
created the patch. Some of this is there to eliminate the
dependency on the ucblib compatibility stuff, some is "cosmetic",
but it also fixes a serious problem in the agent, where walking
the mib tree can loop endlessly if you have multiple network
interfaces."
git-svn-id: file:///home/hardaker/lib/sf-bkups/net-snmp-convert-svnrepo/trunk@369 06827809-a52a-0410-b366-d66718629ded
diff --git a/agent/snmpd.c b/agent/snmpd.c
index ca93655..d51d473 100644
--- a/agent/snmpd.c
+++ b/agent/snmpd.c
@@ -49,6 +49,9 @@
#if HAVE_SYS_FILE_H
#include <sys/file.h>
#endif
+#ifdef HAVE_FCNTL_H
+#include <fcntl.h>
+#endif
#if STDC_HEADERS
#include <string.h>
#endif