From c3a725e2dd873643e042f2ae35a0efe1cb94f7f3 Mon Sep 17 00:00:00 2001 From: Paulo Cesar Pereira de Andrade Date: Thu, 6 Mar 2008 17:55:10 -0300 Subject: [PATCH] Compile warning fixes. Include unistd.h for usleep prototype. Don't define data structures not used when compiling with pciaccess. --- src/vesa.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/src/vesa.c b/src/vesa.c index 57ca3a7..4f421d6 100644 --- a/src/vesa.c +++ b/src/vesa.c @@ -36,6 +36,7 @@ #endif #include +#include #include "vesa.h" @@ -124,10 +125,12 @@ static SymTabRec VESAChipsets[] = {-1, NULL} }; +#ifndef XSERVER_LIBPCIACCESS static PciChipsets VESAPCIchipsets[] = { { CHIP_VESA_GENERIC, PCI_CHIP_VGA, RES_SHARED_VGA }, { -1, -1, RES_UNDEFINED }, }; +#endif static IsaChipsets VESAISAchipsets[] = { {CHIP_VESA_GENERIC, RES_EXCLUSIVE_VGA}, -- 1.5.4.3