summaryrefslogtreecommitdiff
path: root/exa/exa_offscreen.c
diff options
context:
space:
mode:
authorEric Anholt <anholt@freebsd.org>2006-02-10 22:00:30 +0000
committerEric Anholt <anholt@freebsd.org>2006-02-10 22:00:30 +0000
commitc3d14036729fd186d4ec7ca1de603e1f2d174e2f (patch)
tree6fc1290e4da4a16eea3c10c250d302df6b9e98c2 /exa/exa_offscreen.c
parenta8cec1b656f57746758613213de1d6e5acb79451 (diff)
Remove libcwrapper usage from xorg server modules. The libcwrapper is only
of (marginal) use in the drivers, and that usage remains.
Diffstat (limited to 'exa/exa_offscreen.c')
-rw-r--r--exa/exa_offscreen.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/exa/exa_offscreen.c b/exa/exa_offscreen.c
index b0b19f501..c3a2af642 100644
--- a/exa/exa_offscreen.c
+++ b/exa/exa_offscreen.c
@@ -22,6 +22,10 @@
#include "exa_priv.h"
+#include <sys/limits.h>
+#include <assert.h>
+#include <stdlib.h>
+
#if DEBUG_OFFSCREEN
#define DBG_OFFSCREEN(a) ErrorF a
#else
@@ -120,7 +124,7 @@ exaOffscreenAlloc (ScreenPtr pScreen, int size, int align,
/* prev points at the first object to boot */
best = NULL;
- best_score = MAXINT;
+ best_score = INT_MAX;
for (begin = pExaScr->info->card.offScreenAreas; begin != NULL;
begin = begin->next)
{