**************************************************************************/
-#define HAVE_STDINT_H
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
#define _FILE_OFFSET_BITS 64
#include <errno.h>
struct intel_bo
{
struct kms_bo base;
- unsigned handle;
unsigned map_count;
- int mapped;
};
static int
pitch = (pitch + 512 - 1) & ~(512 - 1);
size = pitch * ((height + 4 - 1) & ~(4 - 1));
} else {
+ free(bo);
return -EINVAL;
}