summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJulien Cristau <jcristau@debian.org>2008-06-02 21:32:17 +0200
committerJulien Cristau <jcristau@debian.org>2008-06-02 21:32:17 +0200
commitfe599dbf5178a10b0021c1f33bed528ce3199af9 (patch)
tree895140ff9b0272668ee4bb0f637c446a7db4037c /src
parentce93cda53d399e3327577600e9bf2143f3128441 (diff)
Compiler warning fixes
Include <unistd.h> for usleep(), and s/VERSION/CHIPS_&/ in one place where it had been missed.
Diffstat (limited to 'src')
-rw-r--r--src/ct_driver.c2
-rw-r--r--src/ct_driver.h1
2 files changed, 2 insertions, 1 deletions
diff --git a/src/ct_driver.c b/src/ct_driver.c
index 725fcab..f88bef2 100644
--- a/src/ct_driver.c
+++ b/src/ct_driver.c
@@ -1057,7 +1057,7 @@ CHIPSProbe(DriverPtr drv, int flags)
usedChips[i],
CHIPSISAchipsets,NULL,
NULL,NULL,NULL,NULL))) {
- pScrn->driverVersion = VERSION;
+ pScrn->driverVersion = CHIPS_VERSION;
pScrn->driverName = CHIPS_DRIVER_NAME;
pScrn->name = CHIPS_NAME;
pScrn->Probe = CHIPSProbe;
diff --git a/src/ct_driver.h b/src/ct_driver.h
index 351e813..d2fa6f7 100644
--- a/src/ct_driver.h
+++ b/src/ct_driver.h
@@ -36,6 +36,7 @@
#include "xf86xv.h"
#include "vgaHW.h"
#include <string.h>
+#include <unistd.h>
/* Supported chipsets */
typedef enum {