Always include afsconfig.h in autogenerated files
[openafs.git] / src / comerr / compile_et.c
index 35c2bad..37df6b6 100644 (file)
@@ -12,8 +12,6 @@
 #include <afs/param.h>
 #include <afs/afsutil.h>
 
-RCSID
-    ("$Header$");
 
 #include <stdio.h>
 #include <stdlib.h>
@@ -94,6 +92,7 @@ static const char *const language_names[] = {
 };
 
 static const char *const c_src_prolog[] = {
+    "#include <afsconfig.h>\n",
     "#include <afs/param.h>\n",
     "#include <afs/error_table.h>\n",
     "static const char * const text[] = {\n",
@@ -375,7 +374,7 @@ main(int argc, char **argv)
        fputs("static struct et_list etlink = { 0, &et};\n\n", cfile);
        fprintf(cfile, "void initialize_%s_error_table(void) {\n",
                table_name);
-       fputs("    add_to_error_table(&etlink);\n", cfile);
+       fputs("    afs_add_to_error_table(&etlink);\n", cfile);
        fputs("}\n", cfile);
        fclose(cfile);