]> git.ipfire.org Git - thirdparty/lldpd.git/commitdiff
snmp: ensure single inclusion of agent.h header
authorVincent Bernat <bernat@luffy.cx>
Sat, 21 Jan 2012 10:30:23 +0000 (11:30 +0100)
committerVincent Bernat <bernat@luffy.cx>
Sat, 21 Jan 2012 10:30:23 +0000 (11:30 +0100)
src/agent.h

index 46b7f90fde8c1cf475ef7850694e1936c9ce67b4..8a9f1d24d81e0d598dda1e4b15ff6a7be12b8193 100644 (file)
@@ -14,6 +14,9 @@
  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */
 
+#ifndef _AGENT_H
+#define _AGENT_H
+
 #include <net-snmp/net-snmp-config.h>
 #include <net-snmp/net-snmp-includes.h>
 #include <net-snmp/agent/net-snmp-agent-includes.h>
@@ -21,3 +24,5 @@
 
 static oid lldp_oid[] = {1, 0, 8802, 1, 1, 2};
 size_t agent_lldp_vars_size(void);
+
+#endif