summaryrefslogtreecommitdiff
path: root/hw/xfree86/exa
diff options
context:
space:
mode:
Diffstat (limited to 'hw/xfree86/exa')
-rw-r--r--hw/xfree86/exa/exa_migration.c3
-rw-r--r--hw/xfree86/exa/exa_offscreen.c6
2 files changed, 8 insertions, 1 deletions
diff --git a/hw/xfree86/exa/exa_migration.c b/hw/xfree86/exa/exa_migration.c
index 2acda24da..270ad7541 100644
--- a/hw/xfree86/exa/exa_migration.c
+++ b/hw/xfree86/exa/exa_migration.c
@@ -25,6 +25,9 @@
#ifdef HAVE_CONFIG_H
#include <xorg-config.h>
#endif
+
+#include <string.h>
+
#include "exa_priv.h"
#include <X11/fonts/fontstruct.h>
#include "dixfontstr.h"
diff --git a/hw/xfree86/exa/exa_offscreen.c b/hw/xfree86/exa/exa_offscreen.c
index b0b19f501..c3a2af642 100644
--- a/hw/xfree86/exa/exa_offscreen.c
+++ b/hw/xfree86/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)
{