summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--vidix/pci_db2c.awk8
1 files changed, 8 insertions, 0 deletions
diff --git a/vidix/pci_db2c.awk b/vidix/pci_db2c.awk
index feaa1c7a1e..3d487d1c78 100644
--- a/vidix/pci_db2c.awk
+++ b/vidix/pci_db2c.awk
@@ -29,6 +29,7 @@ BEGIN {
print_head(name_file);
print_head(name_h_file);
print_head(dev_ids_file);
+ print_includes(dev_ids_file);
print "#ifndef PCI_VENDORS_INCLUDED" >vendor_file
print "#define PCI_VENDORS_INCLUDED 1">vendor_file
print "" >vendor_file
@@ -108,6 +109,13 @@ BEGIN {
print_func_bodies(name_file);
}
+function print_includes(out_file)
+{
+ print "#include <stdlib.h>" >out_file;
+ print "#include \"pci_names.h\"" >out_file;
+ return;
+}
+
function print_head( out_file)
{
print "/*" >out_file;