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 5826dc3..6c30e95 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;