diff options
-rw-r--r-- | src/ati.h | 1 | ||||
-rw-r--r-- | src/aticlock.c | 1 | ||||
-rw-r--r-- | src/atiprint.c | 1 | ||||
-rw-r--r-- | src/r128.h | 1 | ||||
-rw-r--r-- | src/r128_dri.c | 3 |
5 files changed, 6 insertions, 1 deletions
@@ -24,6 +24,7 @@ #ifndef ___ATI_H___ #define ___ATI_H___ 1 +#include <unistd.h> #include "xf86Pci.h" #include "atipciids.h" diff --git a/src/aticlock.c b/src/aticlock.c index 5acd3f80..c0de5596 100644 --- a/src/aticlock.c +++ b/src/aticlock.c @@ -196,6 +196,7 @@ #include "config.h" #endif +#include <stdlib.h> #include "ati.h" #include "atiadapter.h" #include "atichip.h" diff --git a/src/atiprint.c b/src/atiprint.c index 365cffcb..d7851010 100644 --- a/src/atiprint.c +++ b/src/atiprint.c @@ -26,6 +26,7 @@ #endif #include <string.h> +#include <ctype.h> #include "ati.h" #include "atiadapter.h" @@ -38,6 +38,7 @@ #ifndef _R128_H_ #define _R128_H_ +#include <unistd.h> #include "xf86str.h" /* PCI support */ diff --git a/src/r128_dri.c b/src/r128_dri.c index 5d7ac3ff..62e53a45 100644 --- a/src/r128_dri.c +++ b/src/r128_dri.c @@ -33,6 +33,7 @@ #endif #include <string.h> +#include <stdio.h> /* * Authors: @@ -1036,7 +1037,7 @@ Bool R128DRIScreenInit(ScreenPtr pScreen) pDRIInfo->ddxDriverMajorVersion = R128_VERSION_MAJOR; pDRIInfo->ddxDriverMinorVersion = R128_VERSION_MINOR; pDRIInfo->ddxDriverPatchVersion = R128_VERSION_PATCH; - pDRIInfo->frameBufferPhysicalAddress = info->LinearAddr; + pDRIInfo->frameBufferPhysicalAddress = (void *)info->LinearAddr; pDRIInfo->frameBufferSize = info->FbMapSize; pDRIInfo->frameBufferStride = (pScrn->displayWidth * info->CurrentLayout.pixel_bytes); |