From 4323d9acf698cd9606e01cb1b8cfc68fb65b8bc7 Mon Sep 17 00:00:00 2001 From: Paulo Cesar Pereira de Andrade Date: Wed, 12 Mar 2008 18:59:15 -0300 Subject: [PATCH] Minor compile warning fixes. Include unistd.h for usleep prototype. Use ifndef XSERVER_PCIACCESS around variable declaration to avoid warning about unused variable. --- src/i740_driver.c | 4 ++++ src/i740_video.c | 1 + 2 files changed, 5 insertions(+), 0 deletions(-) diff --git a/src/i740_driver.c b/src/i740_driver.c index f118637..1c289e2 100644 --- a/src/i740_driver.c +++ b/src/i740_driver.c @@ -95,6 +95,8 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. #include "i740_dga.h" #include "i740.h" +#include + /* Required Functions: */ static const OptionInfoRec * I740AvailableOptions(int chipid, int busid); @@ -870,7 +872,9 @@ I740PreInit(ScrnInfoPtr pScrn, int flags) { static Bool I740MapMem(ScrnInfoPtr pScrn) { +#ifndef XSERVER_LIBPCIACCESS int mmioFlags; +#endif I740Ptr pI740; pI740 = I740PTR(pScrn); diff --git a/src/i740_video.c b/src/i740_video.c index e1aa5d0..4b3d7f0 100644 --- a/src/i740_video.c +++ b/src/i740_video.c @@ -76,6 +76,7 @@ #include "vgaHW.h" #include "i740.h" +#include #define FOURCC_RV15 0x35315652 #define FOURCC_RV16 0x36315652 -- 1.5.4.3