From: Martin Mares Date: Wed, 16 Sep 2009 08:11:58 +0000 (+0200) Subject: Do not include et al. unless PCI_USE_DNS X-Git-Tag: v3.1.5~10 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=fda7c18dfea04edb9f695e28c52c7e73651ff901;p=pciutils.git Do not include et al. unless PCI_USE_DNS Solves compilation problems on Windows. --- 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)