Code

irq plugin: Fix for non-Linux systems.
authorFlorian Forster <octo@crystal.wlan.home.verplant.org>
Thu, 1 Mar 2007 18:59:26 +0000 (19:59 +0100)
committerFlorian Forster <octo@crystal.wlan.home.verplant.org>
Thu, 1 Mar 2007 18:59:26 +0000 (19:59 +0100)
src/irq.c

index 5826dc3d8fe3db46d44bb258f65ee06773d60e3c..6c30e95a752bb4583ca6ce466279062cdfb7e094 100644 (file)
--- a/src/irq.c
+++ b/src/irq.c
@@ -48,6 +48,7 @@ static data_set_t ds_irq =
        "irq", 1, dsrc_irq
 };
 
+#if IRQ_HAVE_READ
 static const char *config_keys[] =
 {
        "Irq",
@@ -55,7 +56,6 @@ static const char *config_keys[] =
 };
 static int config_keys_num = STATIC_ARRAY_SIZE (config_keys);
 
-#if IRQ_HAVE_READ
 static unsigned int *irq_list;
 static unsigned int irq_list_num;