summaryrefslogtreecommitdiff
path: root/include/net-snmp/agent/auto_nlist.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/net-snmp/agent/auto_nlist.h')
-rw-r--r--include/net-snmp/agent/auto_nlist.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/include/net-snmp/agent/auto_nlist.h b/include/net-snmp/agent/auto_nlist.h
new file mode 100644
index 0000000..c7cd872
--- /dev/null
+++ b/include/net-snmp/agent/auto_nlist.h
@@ -0,0 +1,28 @@
+/*
+ * auto_nlist.h
+ */
+#ifndef AUTO_NLIST_H
+#define AUTO_NLIST_H
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#if defined(irix6) && defined(IRIX64)
+#define nlist nlist64
+#endif
+
+#ifdef NETSNMP_CAN_USE_NLIST
+int auto_nlist(const char *, char *, int);
+long auto_nlist_value(const char *);
+int KNLookup(struct nlist *, int, char *, int);
+#else
+int auto_nlist_noop(void);
+# define auto_nlist(x,y,z) auto_nlist_noop()
+# define auto_nlist_value(z) auto_nlist_noop()
+# define KNLookup(w,x,y,z) auto_nlist_noop()
+#endif
+
+#ifdef __cplusplus
+}
+#endif
+#endif