diff options
Diffstat (limited to 'src/mesa/drivers/dri/common/dri_util.c')
-rw-r--r-- | src/mesa/drivers/dri/common/dri_util.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/common/dri_util.c b/src/mesa/drivers/dri/common/dri_util.c index 88caa34e94..33facbbf6c 100644 --- a/src/mesa/drivers/dri/common/dri_util.c +++ b/src/mesa/drivers/dri/common/dri_util.c @@ -27,13 +27,16 @@ #ifdef GLX_DIRECT_RENDERING -#include <inttypes.h> #include <assert.h> #include <stdarg.h> #include <unistd.h> #include <sys/mman.h> #include <stdio.h> +#ifndef MAP_FAILED +#define MAP_FAILED ((void *)-1) +#endif + #ifndef DRI_NEW_INTERFACE_ONLY # include <X11/Xlibint.h> # include <Xext.h> |