From fda7c18dfea04edb9f695e28c52c7e73651ff901 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Wed, 16 Sep 2009 10:11:58 +0200 Subject: [PATCH] Do not include et al. unless PCI_USE_DNS Solves compilation problems on Windows. --- lib/names-cache.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/names-cache.c b/lib/names-cache.c index 059311a..90a6454 100644 --- a/lib/names-cache.c +++ b/lib/names-cache.c @@ -1,11 +1,16 @@ /* * The PCI Library -- ID to Name Cache * - * Copyright (c) 2008 Martin Mares + * Copyright (c) 2008--2009 Martin Mares * * Can be freely distributed and used under the terms of the GNU GPL. */ +#include "internal.h" +#include "names.h" + +#ifdef PCI_USE_DNS + #include #include #include @@ -14,11 +19,6 @@ #include #include -#include "internal.h" -#include "names.h" - -#ifdef PCI_USE_DNS - static const char cache_version[] = "#PCI-CACHE-1.0"; static char *get_cache_name(struct pci_access *a) -- 2.39.2