Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Garming Sam <garming@catalyst.net.nz>
out_file.write("\t\treturn PyInt_FromLong(v);\n");
out_file.write("\t}\n");
out_file.write("}\n\n");
+ # This is needed to avoid a missing prototype error from the C
+ # compiler. There is never a prototype for this function, it is a
+ # module loaded by python with dlopen() and found with dlsym().
+ out_file.write("void initntstatus(void);\n")
out_file.write("void initntstatus(void)\n")
out_file.write("{\n")
out_file.write("\tPyObject *m;\n\n")