k5-klog-20061026
[openafs.git] / src / aklog / add_etbl.c
diff --git a/src/aklog/add_etbl.c b/src/aklog/add_etbl.c
new file mode 100644 (file)
index 0000000..d862af3
--- /dev/null
@@ -0,0 +1,19 @@
+#include <afsconfig.h>
+#ifndef HAVE_ADD_TO_ERROR_TABLE
+#include <afs/stds.h>
+#include <afs/com_err.h>
+
+/* #define error_table error_table_compat */
+#include <afs/error_table.h>
+/* #undef error_table */
+
+#ifndef HAVE_ADD_ERROR_TABLE
+void add_error_table (const struct error_table *);
+#endif /* !HAVE_ADD_ERROR_TABLE */
+
+void
+add_to_error_table(struct et_list *new_table)
+{
+       add_error_table((struct error_table *) new_table->table);
+}
+#endif /* HAVE_ADD_TO_ERROR_TABLE */